mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 23:17:12 +01:00
fix return type of findBookingDays
This commit is contained in:
committed by
Thomas Ruoff
parent
62a0e79664
commit
0ed66962ba
@@ -64,7 +64,7 @@ BookingSchema.virtual('days').get(function () {
|
|||||||
return getDays({ startDate: this.startDate, endDate: this.endDate })
|
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)
|
console.log('in findBookedDays this is', this)
|
||||||
const bookings = await this.find(
|
const bookings = await this.find(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user