chore: fix reset point
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user