File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/sim/lib/webhooks/providers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import crypto from 'crypto'
22import { db , webhook } from '@sim/db'
33import { createLogger } from '@sim/logger'
4- import { and , eq , isNull } from 'drizzle-orm'
4+ import { and , eq } from 'drizzle-orm'
55import type { NextRequest } from 'next/server'
66import { NextResponse } from 'next/server'
77import { 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 ) || ''
You can’t perform that action at this time.
0 commit comments