Skip to content

Commit d1a1e86

Browse files
committed
fix(triggers): use webhook.isActive instead of non-existent deletedAt column
1 parent beee193 commit d1a1e86

File tree

1 file changed

+2
-2
lines changed
  • apps/sim/lib/webhooks/providers

1 file changed

+2
-2
lines changed

apps/sim/lib/webhooks/providers/zoom.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import crypto from 'crypto'
22
import { db, webhook } from '@sim/db'
33
import { createLogger } from '@sim/logger'
4-
import { and, eq, isNull } from 'drizzle-orm'
4+
import { and, eq } from 'drizzle-orm'
55
import type { NextRequest } from 'next/server'
66
import { NextResponse } from 'next/server'
77
import { safeCompare } from '@/lib/core/security/encryption'
@@ -112,7 +112,7 @@ export const zoomHandler: WebhookProviderHandler = {
112112
const webhooks = await db
113113
.select()
114114
.from(webhook)
115-
.where(and(eq(webhook.path, path), isNull(webhook.deletedAt)))
115+
.where(and(eq(webhook.path, path), eq(webhook.isActive, true)))
116116
if (webhooks.length > 0) {
117117
const config = webhooks[0].providerConfig as Record<string, unknown> | null
118118
secretToken = (config?.secretToken as string) || ''

0 commit comments

Comments
 (0)