feat: response in mobile and accouting
This commit is contained in:
@@ -35,7 +35,6 @@ class ApiClient {
|
||||
|
||||
// Check if there's already a pending request with the same key
|
||||
if (pendingRequests.has(requestKey)) {
|
||||
console.log('Deduplicating request:', endpoint);
|
||||
return pendingRequests.get(requestKey);
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,10 @@ const buildPurchaseQuery = (filters: PurchaseFilters): string => {
|
||||
if (filters.product_id !== undefined && filters.product_id !== null) {
|
||||
params.append('product_id', String(filters.product_id));
|
||||
}
|
||||
if (filters.date_from) params.append('date_from', filters.date_from);
|
||||
if (filters.date_to) params.append('date_to', filters.date_to);
|
||||
if (filters.time_from) params.append('time_from', filters.time_from);
|
||||
if (filters.time_to) params.append('time_to', filters.time_to);
|
||||
if (filters.per_page) params.append('per_page', String(filters.per_page));
|
||||
if (filters.page) params.append('page', String(filters.page));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user