chore: fix reset point

This commit is contained in:
2026-03-06 20:08:51 +01:00
parent 9b7ce74d7b
commit 03c414e930
2 changed files with 96 additions and 9 deletions
+2 -1
View File
@@ -142,11 +142,12 @@ export const updateDeliveryStatus = async (
status: string,
latitude: number,
longitude: number,
notes?: string,
): Promise<{ success: boolean; message?: string; error?: string }> => {
try {
const { data } = await apiClient.put(
`${API}/deliveries/${deliveryId}/status`,
{ status, latitude, longitude },
{ status, latitude, longitude, ...(notes ? { notes } : {}) },
);
return { success: true, message: data.message };
} catch (error: any) {