From 0ed66962ba0457a9b5598fcd1e77762db2069774 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Tue, 1 Sep 2020 23:13:36 +0200 Subject: [PATCH] fix return type of findBookingDays --- db/booking.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/booking.ts b/db/booking.ts index 7e2c21f..463a66f 100644 --- a/db/booking.ts +++ b/db/booking.ts @@ -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 { console.log('in findBookedDays this is', this) const bookings = await this.find( {