Add user selection for check-in and update API to include user ID

This commit is contained in:
2026-09-04 12:26:59 +05:30
parent 51aaed8fd1
commit dfd51b8273
2 changed files with 48 additions and 17 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ export const routes = {
assignOwner: (id: string, salesRepId: string) =>
api.put<RouteResponse>(`/routes/${id}/owner`, { salesRepId }).then(r => r.data),
checkIn: (id: string, body: { storeId: string; latitude: number; longitude: number }) =>
checkIn: (id: string, body: { storeId: string; latitude: number; longitude: number; checkedInByUserId: string }) =>
api.post<RouteVisitResponse>(`/routes/${id}/visits/check-in`, body).then(r => r.data),
checkOut: (id: string, body: { storeId: string }) =>