MCPcopy Index your code
hub / github.com/simstudioai/sim / shouldSkipWebhookEvent

Function shouldSkipWebhookEvent

apps/sim/lib/webhooks/processor.ts:223–233  ·  view source on GitHub ↗
(
  webhookRecord: { provider: string; providerConfig?: Record<string, unknown> },
  body: unknown,
  requestId: string
)

Source from the content-addressed store, hash-verified

221 * Delegates to the provider handler registry.
222 */
223export function shouldSkipWebhookEvent(
224 webhookRecord: { provider: string; providerConfig?: Record<string, unknown> },
225 body: unknown,
226 requestId: string
227): boolean {
228 const handler = getProviderHandler(webhookRecord.provider)
229 const providerConfig = webhookRecord.providerConfig ?? {}
230 return (
231 handler.shouldSkipEvent?.({ webhook: webhookRecord, body, requestId, providerConfig }) ?? false
232 )
233}
234
235/** Returns 200 OK for providers that validate URLs before the workflow is deployed */
236export function handlePreDeploymentVerification(

Callers 1

handleWebhookPostFunction · 0.90

Calls 2

getProviderHandlerFunction · 0.90
shouldSkipEventMethod · 0.80

Tested by

no test coverage detected