chore: build

This commit is contained in:
2026-06-11 20:13:43 +02:00
parent aada31a7da
commit b810248d74
2 changed files with 59 additions and 42 deletions
+12 -8
View File
@@ -276,14 +276,18 @@ export const confirmReceptionAdmin = async (commandId: number) => {
// ============================================
export const getAvailableDeliveryPersons = async () => {
const { data } = await apiClient.get(
`${V2}/admin/protected/delivery-persons`,
);
return {
success: true,
livreurs: data.livreurs || [],
count: data.count || 0,
};
try {
const { data } = await apiClient.get(
`${V2}/admin/protected/delivery-persons`,
);
return {
success: true,
livreurs: data.livreurs || [],
count: data.count || 0,
};
} catch {
return { success: false, livreurs: [], count: 0 };
}
};
export const assignDeliveryPerson = async (