fix fetch bookings

This commit is contained in:
Thomas Ruoff
2021-09-09 10:39:07 +02:00
parent 9958353784
commit d52d967d1c

View File

@@ -41,7 +41,7 @@ export async function getBookings({
return await BookingModel.find({ return await BookingModel.find({
status: { $in: status }, status: { $in: status },
startDate: { $gte: startDateGreaterThan }, startDate: { $gte: startDateGreaterThan },
}, { sort: { startDate: -1 } }).exec() }).sort({ startDate: -1 }).exec()
} }
export async function createBooking({ export async function createBooking({