1 parent
c3dab3e4f8
commit
02321c33b2
18 files changed
+1271
-1331
No files matched your search
@@ -8,7 +8,7 @@ import type { TGetRetellLLMSchema } from "@calcom/features/ee/cal-ai-phone/zod-u
|
||||
import { fetcher } from "@calcom/lib/retellAIFetcher";
|
||||
import { defaultHandler } from "@calcom/lib/server/defaultHandler";
|
||||
import prisma from "@calcom/prisma";
|
||||
import { AvailableSlotsService } from "@calcom/trpc/server/routers/viewer/slots/util";
|
||||
import { getAvailableSlots } from "@calcom/trpc/server/routers/viewer/slots/util";
|
||||
|
||||
dayjs.extend(advancedFormat);
|
||||
|
||||
@@ -86,9 +86,8 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
const startTime = now.startOf("month").toISOString();
|
||||
const endTime = now.add(2, "month").endOf("month").toISOString();
|
||||
const orgSlug = eventType?.team?.parent?.slug ?? null;
|
||||
const availableSlotsService = new AvailableSlotsService();
|
||||
|
||||
const availableSlots = await availableSlotsService.getAvailableSlots({
|
||||
const availableSlots = await getAvailableSlots({
|
||||
input: {
|
||||
startTime,
|
||||
endTime,
|
||||
|
||||
Reference in new issue
Block a user