Skip to content

Commit a40cb11

Browse files
author
aadamgough
committed
removed comments
1 parent 46740c9 commit a40cb11

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

apps/sim/app/api/webhooks/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,6 @@ async function createGrainWebhookSubscription(
12041204
grain_upload_status: 'upload_status',
12051205
}
12061206

1207-
// Map trigger IDs to expected payload event types (for filtering incoming webhooks)
12081207
const eventTypeMap: Record<string, string[]> = {
12091208
grain_webhook: [],
12101209
grain_recording_created: ['recording_added'],

apps/sim/lib/webhooks/processor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ export function shouldSkipWebhookEvent(webhook: any, body: any, requestId: strin
239239
}
240240
}
241241

242-
// Grain event filtering - filter by payload type field (e.g., recording_added, highlight_created)
243242
if (webhook.provider === 'grain') {
244243
const eventTypes = providerConfig.eventTypes
245244
if (eventTypes && Array.isArray(eventTypes) && eventTypes.length > 0) {

0 commit comments

Comments
 (0)