fix: /booking page datefilter (#18654)
* fix: /booking page datefilter * Update get.handler.ts * Update get.handler.ts * shit
This commit is contained in:
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(),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user