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

Hotfix CTX removal from webhooks
This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2022-06-08 13:21:17 +05:30
commit 4e97133751
2 files changed
+2 -2

No files matched your search

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