This commit is contained in:
Thomas Ruoff
2020-08-06 22:34:33 +02:00
parent e4c8b7ceba
commit 7dc8c71852
6 changed files with 86 additions and 50 deletions

View File

@@ -30,7 +30,10 @@ export async function getBookedDays() {
'startDate endDate'
).exec()
return bookings.map((booking) => booking.days).flat()
return bookings
.map((booking) => booking.days)
.flat()
.sort()
}
export async function createBooking({