Merge pull request #110 from calcom/fix/webhook-issue

Hotfix CTX removal from webhooks
pull/9078/head
Syed Ali Shahbaz 2022-06-08 13:21:17 +05:30 committed by GitHub
commit 4e97133751
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ export async function WebhookById(
}
}
if (safeBody.data.eventTypeId) {
const team = await ctx.prisma.team.findFirst({
const team = await prisma.team.findFirst({
where: {
eventTypes: {
some: {

View File

@ -62,7 +62,7 @@ async function createOrlistAllWebhooks(
return;
}
if (safe.data.eventTypeId) {
const team = await ctx.prisma.team.findFirst({
const team = await prisma.team.findFirst({
where: {
eventTypes: {
some: {