Skip to content

Commit

Permalink
refactor(actions/user): Use existing endpoint for fetching trips
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Nov 21, 2024
1 parent ccd4d57 commit d7794a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/actions/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function fetchMonitoredTrips() {
const { accessToken, apiBaseUrl, apiKey } = getMiddlewareVariables(
getState()
)
const requestUrl = `${apiBaseUrl}${API_MONITORED_TRIP_PATH}/gettrips`
const requestUrl = `${apiBaseUrl}${API_MONITORED_TRIP_PATH}`

const { data: trips, status } = await secureFetch(
requestUrl,
Expand Down

0 comments on commit d7794a6

Please sign in to comment.