updates on the ai bot and assigned by chatbot
This commit is contained in:
@@ -583,14 +583,7 @@ const Deliveries = () => {
|
||||
isLoading: countSourceIsLoading,
|
||||
refetch: countSourceRefetch
|
||||
} = useInfiniteQuery({
|
||||
// The trailing 'activity' is the date basis (api.js reads queryKey[11]):
|
||||
// keep a row whose LAST UPDATE falls in the window, not only one created in
|
||||
// it. Scoping a delivery board by creation date hid every order booked
|
||||
// yesterday and picked or delivered today — which is why each tab past
|
||||
// Accepted read 0 while the day's fresh orders filled Pending and Accepted.
|
||||
// The other three callers of fetchDeliveries deliberately keep the old
|
||||
// created-only basis.
|
||||
queryKey: ['fetchdeliveries-batchcounts', appId, userid, 'all', startdate, enddate, 200, '', tenantid, locationid, riderid, 'activity'],
|
||||
queryKey: ['fetchdeliveries-batchcounts', appId, userid, 'all', startdate, enddate, 200, '', tenantid, locationid, riderid],
|
||||
queryFn: fetchDeliveries,
|
||||
getNextPageParam: (lastPage) => lastPage.nextPage ?? undefined
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user