mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
prettier all the things
This commit is contained in:
committed by
Thomas Ruoff
parent
c35d3009c6
commit
36f8719531
@@ -5,7 +5,7 @@ import { BOOKING_STATUS } from './enums'
|
||||
|
||||
let connectedPromise: Promise<mongoose.Mongoose>
|
||||
|
||||
export const MONGO_URI = process.env.MONGO_URI;
|
||||
export const MONGO_URI = process.env.MONGO_URI
|
||||
|
||||
export const MONGODB_OPTIONS = {
|
||||
useCreateIndex: true,
|
||||
@@ -45,7 +45,9 @@ 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