change list invoce and tickets + pwa + ...
This commit is contained in:
@@ -6,11 +6,12 @@ export const useGetInvoices = (
|
||||
status: string,
|
||||
customerId: string,
|
||||
search: string,
|
||||
date: string
|
||||
date: string,
|
||||
endDate: string
|
||||
) => {
|
||||
return useQuery({
|
||||
queryKey: ["invoices", status, customerId, search, date],
|
||||
queryFn: () => api.getInvoces(status, customerId, search, date),
|
||||
queryKey: ["invoices", status, customerId, search, date, endDate],
|
||||
queryFn: () => api.getInvoces(status, customerId, search, date, endDate),
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user