From 8afcba23c855d71adfe97ee3e51aeb91a9d047cb Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Sun, 12 Dec 2021 00:09:34 +0100 Subject: [PATCH] Commented out minimumBookingNotice, needs fixing (#1297) --- lib/slots.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/slots.ts b/lib/slots.ts index b782f287e0..1238aa5579 100644 --- a/lib/slots.ts +++ b/lib/slots.ts @@ -24,9 +24,10 @@ const getMinuteOffset = (date: Dayjs, step: number) => { return Math.ceil(minuteOffset / step) * step; }; +// eslint-disable-next-line @typescript-eslint/no-unused-vars const getSlots = ({ inviteeDate, frequency, minimumBookingNotice, workingHours }: GetSlots) => { // current date in invitee tz - let startDate = dayjs(inviteeDate).add(minimumBookingNotice, "minute"); + let startDate = dayjs(inviteeDate); // .add(minimumBookingNotice, "minute"); // checks if the start date is in the past if (startDate.isBefore(dayjs(), "day")) { return [];