Scheduling infrastructure for absolutely everyone.
refactor: remove /ee/ url segment from atoms hooks (#14602)
Lauris Skraucis0eae0bb8fe78
diff --git a/packages/platform/atoms/hooks/useCancelBooking.ts b/packages/platform/atoms/hooks/useCancelBooking.tsindex 3960b8fe401..d1502a04489 100644--- a/packages/platform/atoms/hooks/useCancelBooking.ts+++ b/packages/platform/atoms/hooks/useCancelBooking.ts@@ -26,7 +26,7 @@ export const useCancelBooking = () => {const cancelBooking = useMutation<ApiResponse, Error, inputParams>({mutationFn: (data) => {- return http.post<ApiResponse>(`/ee/bookings/${data.id}/cancel`, data).then((res) => {+ return http.post<ApiResponse>(`/bookings/${data.id}/cancel`, data).then((res) => {if (res.data.status === SUCCESS_STATUS) {return res.data;}diff --git a/packages/platform/atoms/hooks/useOAuthClient.ts b/packages/platform/atoms/hooks/useOAuthClient.tsindex 786a388933c..c2516dade2a 100644--- a/packages/platform/atoms/hooks/useOAuthClient.ts+++ b/packages/platform/atoms/hooks/useOAuthClient.ts@@ -31,7 +31,7 @@ export const useOAuthClient = ({ clientId, apiUrl, refreshUrl, onError, onSuccesif (clientId && http.getUrl() && prevClientId !== clientId) {try {http- .get<ApiResponse>(`/ee/provider/${clientId}`)+ .get<ApiResponse>(`/provider/${clientId}`).then(() => {onSuccess();http.setClientIdHeader(clientId);diff --git a/packages/platform/atoms/hooks/useOAuthFlow.ts b/packages/platform/atoms/hooks/useOAuthFlow.tsindex 7a58db798e4..d9ff7bed8b4 100644--- a/packages/platform/atoms/hooks/useOAuthFlow.ts+++ b/packages/platform/atoms/hooks/useOAuthFlow.ts@@ -58,7 +58,7 @@ export const useOAuthFlow = ({ accessToken, refreshUrl, clientId, onError, onSuchttp.setAuthorizationHeader(accessToken);try {http- .get<ApiResponse>(`/ee/provider/${clientId}/access-token`)+ .get<ApiResponse>(`/provider/${clientId}/access-token`).catch(async (err: AxiosError) => {if ((err.response?.status === 498 || err.response?.status === 401) && refreshUrl) {setIsRefreshing(true);