Changing how retrieving schedulable reservations works
This commit is contained in:
parent
c2bb21d55a
commit
d9ed2f22c1
1 changed files with 3 additions and 2 deletions
|
|
@ -45,11 +45,12 @@ export class ReservationsService {
|
|||
.where(
|
||||
`DATE(dateRangeStart) BETWEEN DATE(:startDate) AND DATE(:endDate)`,
|
||||
{
|
||||
startDate: dayjs().add(7, 'days').toISOString(),
|
||||
endDate: dayjs().toISOString(),
|
||||
startDate: dayjs().add(1, 'days').toISOString(),
|
||||
endDate: dayjs().add(7, 'days').toISOString(),
|
||||
},
|
||||
)
|
||||
.andWhere(`waitListed = false`)
|
||||
.orderBy('dateRangeStart', 'DESC')
|
||||
|
||||
return await query.getMany()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue