Fixing issue when fetching recurring reservations by day of week
This commit is contained in:
parent
135b9930f6
commit
cb7fa73a58
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ export class RecurringReservationsController {
|
|||
@Get()
|
||||
getRecurringReservations(@Query('dayOfWeek') dayOfWeek?: DayOfWeek) {
|
||||
if (dayOfWeek) {
|
||||
return this.recurringReservationsService.getByDayOfWeek
|
||||
return this.recurringReservationsService.getByDayOfWeek(dayOfWeek)
|
||||
}
|
||||
return this.recurringReservationsService.getAll()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue