fix: /booking page datefilter (#18654)

* fix: /booking page datefilter

* Update get.handler.ts

* Update get.handler.ts

* shit
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-01-14 15:14:28 +00:00
1 parent 99b2419dd7
commit 6cd7454f43
3 files changed
+6 -6

No files matched your search

@@ -188,7 +188,7 @@ export async function getBookings({
if (filters?.afterStartDate) {
bookingWhereInputFilters.afterStartDate = {
startTime: {
gte: dayjs(filters.afterStartDate).utc().endOf("day").toDate(),
gte: dayjs.utc(filters.afterStartDate).toDate(),
},
};
}
@@ -196,7 +196,7 @@ export async function getBookings({
if (filters?.beforeEndDate) {
bookingWhereInputFilters.beforeEndDate = {
endTime: {
lte: dayjs(filters.beforeEndDate).utc().startOf("day").toDate(),
lte: dayjs.utc(filters.beforeEndDate).toDate(),
},
};
}