Checking number of hours in the future for reservations instead of days
This commit is contained in:
parent
10da5b1120
commit
6dfe776b14
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ export class Reservation {
|
|||
*/
|
||||
@Exclude()
|
||||
public isAvailableForReservation(): boolean {
|
||||
return this.dateRangeStart.diff(dayjs(), 'day') <= 7
|
||||
return this.dateRangeStart.diff(dayjs(), 'hour') <= 7 * 24
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue