Fixing getting schedulable reservations to use correct params
This commit is contained in:
parent
3e6f7473b4
commit
3951862c66
1 changed files with 2 additions and 2 deletions
|
|
@ -51,12 +51,12 @@ export class ReservationsService {
|
|||
.where(
|
||||
`(DATE(dateRangeStart) >= DATE(:startDate) OR DATE(dateRangeStart) <= DATE(:endDate))`,
|
||||
{
|
||||
startDate: dayjs().add(1, 'days').toISOString(),
|
||||
startDate: dayjs().toISOString(),
|
||||
endDate: dayjs().add(7, 'days').toISOString(),
|
||||
},
|
||||
)
|
||||
.andWhere('status = :status', {
|
||||
statuses: ReservationStatus.Pending,
|
||||
status: ReservationStatus.Pending,
|
||||
})
|
||||
.orderBy('dateRangeStart', 'ASC')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue