Skip to content

Commit 79c99dd

Browse files
committed
fix: align RSS GUID fallback logic across tracking, filtering, and idempotency
The GUID fallback computation now consistently guards against missing title/pubDate fields in all three locations (tracking at line 117-121, filtering at line 238-241, and idempotency at line 295-298). This prevents mismatches where items lacking both guid and link would generate empty strings in tracking but 'undefined' strings in idempotency keys, causing duplicate processing on subsequent poll cycles.
1 parent 234604a commit 79c99dd

File tree

1 file changed

+4
-1
lines changed
  • apps/sim/lib/webhooks/polling

1 file changed

+4
-1
lines changed

apps/sim/lib/webhooks/polling/rss.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,10 @@ async function processRssItems(
292292

293293
for (const item of items) {
294294
try {
295-
const itemGuid = item.guid || item.link || `${item.title}-${item.pubDate}`
295+
const itemGuid =
296+
item.guid ||
297+
item.link ||
298+
(item.title && item.pubDate ? `${item.title}-${item.pubDate}` : '')
296299

297300
await pollingIdempotency.executeWithIdempotency(
298301
'rss',

0 commit comments

Comments
 (0)