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(
|
.where(
|
||||||
`(DATE(dateRangeStart) >= DATE(:startDate) OR DATE(dateRangeStart) <= DATE(:endDate))`,
|
`(DATE(dateRangeStart) >= DATE(:startDate) OR DATE(dateRangeStart) <= DATE(:endDate))`,
|
||||||
{
|
{
|
||||||
startDate: dayjs().add(1, 'days').toISOString(),
|
startDate: dayjs().toISOString(),
|
||||||
endDate: dayjs().add(7, 'days').toISOString(),
|
endDate: dayjs().add(7, 'days').toISOString(),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.andWhere('status = :status', {
|
.andWhere('status = :status', {
|
||||||
statuses: ReservationStatus.Pending,
|
status: ReservationStatus.Pending,
|
||||||
})
|
})
|
||||||
.orderBy('dateRangeStart', 'ASC')
|
.orderBy('dateRangeStart', 'ASC')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue