diff --git a/packages/prisma/schema.prisma b/packages/prisma/schema.prisma index 854d2b52fd..605f7bea89 100644 --- a/packages/prisma/schema.prisma +++ b/packages/prisma/schema.prisma @@ -623,6 +623,7 @@ enum AppCategories { web3 // deprecated, we should no longer have any web3 apps automation analytics + // Wherever video is in use, conferencing should also be used for legacy apps can have it. conferencing crm } diff --git a/packages/trpc/server/routers/loggedInViewer/deleteCredential.handler.ts b/packages/trpc/server/routers/loggedInViewer/deleteCredential.handler.ts index c3b1cd7c4f..adf1142c48 100644 --- a/packages/trpc/server/routers/loggedInViewer/deleteCredential.handler.ts +++ b/packages/trpc/server/routers/loggedInViewer/deleteCredential.handler.ts @@ -72,7 +72,10 @@ export const deleteCredentialHandler = async ({ ctx, input }: DeleteCredentialOp for (const eventType of eventTypes) { if (eventType.locations) { // If it's a video, replace the location with Cal video - if (credential.app?.categories.includes(AppCategories.video)) { + if ( + credential.app?.categories.includes(AppCategories.video) || + credential.app?.categories.includes(AppCategories.conferencing) + ) { // Find the user's event types // Look for integration name from app slug diff --git a/packages/trpc/server/routers/loggedInViewer/locationOptions.handler.ts b/packages/trpc/server/routers/loggedInViewer/locationOptions.handler.ts index 61f13064ef..155891c5fe 100644 --- a/packages/trpc/server/routers/loggedInViewer/locationOptions.handler.ts +++ b/packages/trpc/server/routers/loggedInViewer/locationOptions.handler.ts @@ -20,7 +20,7 @@ export const locationOptionsHandler = async ({ ctx, input }: LocationOptionsOpti userId: ctx.user.id, app: { categories: { - has: AppCategories.video, + hasSome: [AppCategories.conferencing, AppCategories.video], }, }, },