chore: fix URL
This commit is contained in:
@@ -9,8 +9,8 @@ import type {
|
||||
Alert,
|
||||
} from "./types";
|
||||
|
||||
const V2 = "https://uber-stup.club/api/v2";
|
||||
const CABINE_URL = "https://uber-stup.club/api/v1/cabine";
|
||||
const V2 = "http://5.181.0.112/api/v2";
|
||||
const CABINE_URL = "http://5.181.0.112/api/v1/cabine";
|
||||
|
||||
// ============================================
|
||||
// AUTH
|
||||
@@ -177,7 +177,11 @@ export const notifyClientToDescend = async (commandId: number) => {
|
||||
const { data } = await apiClient.post(
|
||||
`${V2}/admin/protected/orders/${commandId}/notify-client`,
|
||||
);
|
||||
return { success: true, message: data.message, client_username: data.client_username };
|
||||
return {
|
||||
success: true,
|
||||
message: data.message,
|
||||
client_username: data.client_username,
|
||||
};
|
||||
};
|
||||
|
||||
export const confirmReceptionAdmin = async (commandId: number) => {
|
||||
@@ -531,7 +535,12 @@ export const deleteAddress = async (
|
||||
): Promise<{ success: boolean; message: string }> => {
|
||||
const { data } = await apiClient.delete(
|
||||
`${V2}/admin/protected/delete/address`,
|
||||
{ data: { invalid_address: invalidAddress, correct_address: correctAddress } },
|
||||
{
|
||||
data: {
|
||||
invalid_address: invalidAddress,
|
||||
correct_address: correctAddress,
|
||||
},
|
||||
},
|
||||
);
|
||||
return { success: true, message: data.message };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user