Checking number of hours in the future for reservations instead of days

This commit is contained in:
Collin Duncan 2024-05-15 20:31:23 +02:00
parent 10da5b1120
commit 6dfe776b14
No known key found for this signature in database

View file

@ -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
}
/**