feat: add dual-date filter
This commit is contained in:
@@ -6,6 +6,9 @@ export const getAppointmentsApi = async (
|
||||
date = '',
|
||||
startDate = '',
|
||||
endDate = '',
|
||||
createdDate = '',
|
||||
createdStartDate = '',
|
||||
createdEndDate = '',
|
||||
search = ''
|
||||
) => {
|
||||
const params = new URLSearchParams({
|
||||
@@ -14,6 +17,9 @@ export const getAppointmentsApi = async (
|
||||
...(date && { date }),
|
||||
...(startDate && { startDate }),
|
||||
...(endDate && { endDate }),
|
||||
...(createdDate && { createdDate }),
|
||||
...(createdStartDate && { createdStartDate }),
|
||||
...(createdEndDate && { createdEndDate }),
|
||||
...(search && { search }),
|
||||
});
|
||||
const res = await apiClient.get(`/appointments/getall?${params}`);
|
||||
|
||||
Reference in New Issue
Block a user