Merge branch 'main' into feat/api-keys

pull/2277/head
kodiakhq[bot] 2022-04-15 15:09:47 +00:00 committed by GitHub
commit a741edc803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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: {