From 6219e45dc9090f2bfc99abdc0e26efb084d6d396 Mon Sep 17 00:00:00 2001 From: Xor290 Date: Fri, 6 Mar 2026 15:24:11 +0100 Subject: [PATCH] chore: add preprod api --- frontend-admin/src/api/api_delivery.ts | 1 - mobile/src/auth/tokenStorage.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/frontend-admin/src/api/api_delivery.ts b/frontend-admin/src/api/api_delivery.ts index 139826f2..69833226 100644 --- a/frontend-admin/src/api/api_delivery.ts +++ b/frontend-admin/src/api/api_delivery.ts @@ -76,7 +76,6 @@ export const getMyDeliveries = async (): Promise<{ }> => { try { const { data } = await apiClient.get(`${API}/deliveries`); - // Le backend inclut déjà items et client_info dans chaque livraison const deliveries: DeliveryItem[] = (data.deliveries || []).map( (d: any) => ({ ...d, items: d.items || [] }), ); diff --git a/mobile/src/auth/tokenStorage.ts b/mobile/src/auth/tokenStorage.ts index 2b7fa252..d258bdb1 100644 --- a/mobile/src/auth/tokenStorage.ts +++ b/mobile/src/auth/tokenStorage.ts @@ -12,7 +12,6 @@ export const setToken = (token: string) => AsyncStorage.setItem(TOKEN_KEY, token); export const removeToken = () => AsyncStorage.removeItem(TOKEN_KEY); -// Admin/Cabine/Livreur token export const getAdminToken = () => AsyncStorage.getItem(ADMIN_TOKEN_KEY); export const setAdminToken = (token: string) => AsyncStorage.setItem(ADMIN_TOKEN_KEY, token);