Merge pull request #110 from calcom/fix/webhook-issue
Hotfix CTX removal from webhookspull/9078/head
commit
4e97133751
|
@ -96,7 +96,7 @@ export async function WebhookById(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (safeBody.data.eventTypeId) {
|
if (safeBody.data.eventTypeId) {
|
||||||
const team = await ctx.prisma.team.findFirst({
|
const team = await prisma.team.findFirst({
|
||||||
where: {
|
where: {
|
||||||
eventTypes: {
|
eventTypes: {
|
||||||
some: {
|
some: {
|
||||||
|
|
|
@ -62,7 +62,7 @@ async function createOrlistAllWebhooks(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (safe.data.eventTypeId) {
|
if (safe.data.eventTypeId) {
|
||||||
const team = await ctx.prisma.team.findFirst({
|
const team = await prisma.team.findFirst({
|
||||||
where: {
|
where: {
|
||||||
eventTypes: {
|
eventTypes: {
|
||||||
some: {
|
some: {
|
||||||
|
|
Loading…
Reference in New Issue