mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
fix fetch bookings
This commit is contained in:
@@ -41,7 +41,7 @@ export async function getBookings({
|
||||
return await BookingModel.find({
|
||||
status: { $in: status },
|
||||
startDate: { $gte: startDateGreaterThan },
|
||||
}, { sort: { startDate: -1 } }).exec()
|
||||
}).sort({ startDate: -1 }).exec()
|
||||
}
|
||||
|
||||
export async function createBooking({
|
||||
|
||||
Reference in New Issue
Block a user