fix return type of findBookingDays

This commit is contained in:
Thomas Ruoff
2020-09-01 23:13:36 +02:00
committed by Thomas Ruoff
parent 62a0e79664
commit 0ed66962ba

View File

@@ -64,7 +64,7 @@ BookingSchema.virtual('days').get(function () {
return getDays({ startDate: this.startDate, endDate: this.endDate })
})
BookingSchema.static('findBookedDays', async function (): string[] {
BookingSchema.static('findBookedDays', async function (): Promise<string[]> {
console.log('in findBookedDays this is', this)
const bookings = await this.find(
{