overall commit
This commit is contained in:
@@ -147,9 +147,9 @@ export const fetchOrdersSummary = async ({ queryKey }) => {
|
||||
// ==============================|| getreportlocationsummary (orders summary)||============================== //
|
||||
export const getreportlocationsummary = async ({ queryKey }) => {
|
||||
console.log('queryKey for getreportlocationsummary', queryKey);
|
||||
const [startdate, enddate, locationId] = queryKey;
|
||||
const [startdate, enddate, locationId, debouncedSearch] = queryKey;
|
||||
const response = await axios.get(
|
||||
`${process.env.REACT_APP_URL}/deliveries/getreportlocationsummary/?tenantid=${tenid}&locationid=${locationId}&fromdate=${startdate}&todate=${enddate}`
|
||||
`${process.env.REACT_APP_URL}/deliveries/getreportlocationsummary/?tenantid=${tenid}&locationid=${locationId}&fromdate=${startdate}&todate=${enddate}&keyword=${debouncedSearch}`
|
||||
);
|
||||
console.log('getreportlocationsummary', response.data.details);
|
||||
|
||||
@@ -292,9 +292,16 @@ export const fetchCount = async ({ queryKey }) => {
|
||||
// ==============================|| fetchRidersLogs (RiderLogs)||============================== //
|
||||
|
||||
export const fetchRidersLogs = async ({ queryKey }) => {
|
||||
const [tenantid, startdate] = queryKey;
|
||||
const [appId, startdate, riderSearch = ''] = queryKey;
|
||||
// const riderLogsResponse = await axios.get(
|
||||
// `${process.env.REACT_APP_URL}/partners/getriderlogs/?applocationid=${appId}&fromdate=${startdate || ''}&todate=${startdate}&keyword=${
|
||||
// riderSearch || ''
|
||||
// }`
|
||||
// );
|
||||
const riderLogsResponse = await axios.get(
|
||||
`${process.env.REACT_APP_URL}/partners/getriderlogs/?tenantid=${tenantid}&fromdate=${startdate || ''}`
|
||||
`https://jupiter.nearle.app/live/api/v2/partners/getriderlogs/?applocationid=${appId}&fromdate=${startdate || ''}&todate=${
|
||||
startdate || ''
|
||||
}&keyword=${riderSearch || ''}`
|
||||
);
|
||||
console.log('fetchRidersLogs', riderLogsResponse.data.details);
|
||||
return riderLogsResponse.data.details;
|
||||
|
||||
Reference in New Issue
Block a user