Skip to content

Commit

Permalink
Merge pull request #144 from bento-platform/features/beacon-overview-…
Browse files Browse the repository at this point in the history
…endpoint

beacon: use a different overview endpoint
  • Loading branch information
gsfk authored Jan 15, 2024
2 parents 5a6cd4f + 753dd12 commit 5625c21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/features/beacon/beaconConfig.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { printAPIError } from '@/utils/error.util';
export const getBeaconConfig = createAsyncThunk<BeaconConfigResponse, void, { state: RootState; rejectValue: string }>(
'beaconConfig/getBeaconConfig',
(_, { getState, rejectWithValue }) => {
const beaconInfoEndpoint = getState()?.config?.beaconUrl + '/info';
const beaconInfoEndpoint = getState().config.beaconUrl + '/overview';
return axios
.get(beaconInfoEndpoint)
.then((res) => res.data)
Expand Down
2 changes: 1 addition & 1 deletion src/js/features/beacon/beaconQuery.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const makeBeaconQuery = createAsyncThunk<
BeaconQueryPayload,
{ state: RootState; rejectValue: string }
>('beaconQuery/makeBeaconQuery', async (payload, { getState, rejectWithValue }) => {
const beaconIndividualsEndpoint = getState()?.config?.beaconUrl + '/individuals';
const beaconIndividualsEndpoint = getState().config.beaconUrl + '/individuals';
return axios
.post(beaconIndividualsEndpoint, payload)
.then((res) => res.data)
Expand Down

0 comments on commit 5625c21

Please sign in to comment.