DailyVideo default (#2505)

Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
sean-brydon 2022-04-15 16:07:37 +01:00 committed by GitHub
parent 33287d6944
commit dabf5367bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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