Skip to content

Commit

Permalink
Commented out minimumBookingNotice, needs fixing (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
emrysal committed Dec 11, 2021
1 parent c359ebe commit 8afcba2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/slots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
Expand Down

1 comment on commit 8afcba2

@vercel
Copy link

@vercel vercel bot commented on 8afcba2 Dec 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.