updates on the dead codes removal

This commit is contained in:
2026-08-01 16:50:58 +05:30
parent 79fefda61a
commit 6ed0e577e0
20 changed files with 55 additions and 781 deletions

View File

@@ -94,7 +94,7 @@ export const fetchDeliveryLocationSummary = async () => {
// fetchOrders.js
export const fetchOrders1 = async ({ pageParam = 1, queryKey }) => {
const [_key, tenantid, locationid, status, startdate, enddate, searchword, rowsPerPage] = queryKey;
const [, tenantid, locationid, status, startdate, enddate, searchword, rowsPerPage] = queryKey;
const res = await axios.get(
`${process.env.REACT_APP_URL}/orders/tenant/getorders/?tenantid=${tenantid}&locationid=${locationid}&status=${status}&fromdate=${startdate}&todate=${enddate}&pageno=${pageParam}&pagesize=${rowsPerPage}&keyword=${searchword}`
@@ -224,7 +224,7 @@ export const gettenantlocations = async ({ queryKey }) => {
// ==============================|| fetchDeliverySummary (orders summary)||============================== //
export const fetchDeliverySummary = async ({ queryKey }) => {
const [, startdate, enddate, currentStatus, locationId] = queryKey;
const [, startdate, enddate, , locationId] = queryKey;
const response = await axios.get(
`${process.env.REACT_APP_URL}/deliveries/deliverysummary?tenantid=${tenid}&locationid=${locationId}&fromdate=${startdate}&todate=${enddate}`
);