Potential fix for availability timeout

pull/3182/head
zomars 2022-06-28 13:17:43 -06:00
parent fe50f04075
commit 840b6c498a
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,7 @@
import { SchedulingType } from "@prisma/client";
import dayjs, { Dayjs } from "dayjs";
import timezone from "dayjs/plugin/timezone";
import utc from "dayjs/plugin/utc";
import { z } from "zod";
import type { CurrentSeats } from "@calcom/core/getUserAvailability";
@ -15,6 +17,9 @@ import getSlots from "@lib/slots";
import { createRouter } from "@server/createRouter";
import { TRPCError } from "@trpc/server";
dayjs.extend(utc);
dayjs.extend(timezone);
const getScheduleSchema = z
.object({
// startTime ISOString

View File

@ -1,9 +1,14 @@
import dayjs from "dayjs";
import timezone from "dayjs/plugin/timezone";
import utc from "dayjs/plugin/utc";
import { z } from "zod";
import { LocationType } from "@calcom/core/location";
import { slugify } from "@calcom/lib/slugify";
dayjs.extend(utc);
dayjs.extend(timezone);
// Let's not import 118kb just to get an enum
export enum Frequency {
YEARLY = 0,