From 6dfe776b14611707dd141100a3b56402d53f04b7 Mon Sep 17 00:00:00 2001 From: Collin Duncan <3679940+cgduncan7@users.noreply.github.com> Date: Wed, 15 May 2024 20:31:23 +0200 Subject: [PATCH] Checking number of hours in the future for reservations instead of days --- src/reservations/entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reservations/entity.ts b/src/reservations/entity.ts index 11ac9e7..f585dfa 100644 --- a/src/reservations/entity.ts +++ b/src/reservations/entity.ts @@ -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 } /**