File tree Expand file tree Collapse file tree
apps/sim/lib/webhooks/polling Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -282,19 +282,19 @@ async function processEvents(
282282 let latestUpdated : string | null = null
283283
284284 for ( const event of events ) {
285- // Client-side event type filter — skip before idempotency so filtered events aren't cached
286- const computedEventType = determineEventType ( event )
287- if ( eventTypeFilter && computedEventType !== eventTypeFilter ) {
288- continue
289- }
290-
291285 // Track the latest `updated` timestamp for clock-skew-free state tracking
292286 if ( event . updated ) {
293287 if ( ! latestUpdated || event . updated > latestUpdated ) {
294288 latestUpdated = event . updated
295289 }
296290 }
297291
292+ // Client-side event type filter — skip before idempotency so filtered events aren't cached
293+ const computedEventType = determineEventType ( event )
294+ if ( eventTypeFilter && computedEventType !== eventTypeFilter ) {
295+ continue
296+ }
297+
298298 try {
299299 // Idempotency key includes `updated` so re-edits of the same event re-trigger
300300 const idempotencyKey = `${ webhookData . id } :${ event . id } :${ event . updated || event . created || '' } `
You can’t perform that action at this time.
0 commit comments