From dabf5367bcfd971d1935a036e3dd33808501f4f3 Mon Sep 17 00:00:00 2001 From: sean-brydon <55134778+sean-brydon@users.noreply.github.com> Date: Fri, 15 Apr 2022 16:07:37 +0100 Subject: [PATCH] DailyVideo default (#2505) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Omar López --- apps/web/server/routers/viewer/eventTypes.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/server/routers/viewer/eventTypes.tsx b/apps/web/server/routers/viewer/eventTypes.tsx index 2c84949d04..76e8a146e6 100644 --- a/apps/web/server/routers/viewer/eventTypes.tsx +++ b/apps/web/server/routers/viewer/eventTypes.tsx @@ -124,6 +124,10 @@ export const eventTypesRouter = createProtectedRouter() }, }; + if (process.env.DAILY_API_KEY && process.env.DAILY_SCALE_PLAN) { + data.locations = [{ type: "integrations:daily" }]; + } + if (teamId && schedulingType) { const hasMembership = await ctx.prisma.membership.findFirst({ where: {