Skip to content

Commit b85245d

Browse files
committed
fix(rss): add top-level title, link, pubDate fields to RSS trigger output
1 parent 689037a commit b85245d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

apps/sim/executor/utils/start-block.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,7 @@ function buildManualTriggerOutput(
377377
return mergeFilesIntoOutput(output, workflowInput)
378378
}
379379

380-
function buildIntegrationTriggerOutput(
381-
_finalInput: unknown,
382-
workflowInput: unknown
383-
): NormalizedBlockOutput {
380+
function buildIntegrationTriggerOutput(workflowInput: unknown): NormalizedBlockOutput {
384381
return isPlainObject(workflowInput) ? (workflowInput as NormalizedBlockOutput) : {}
385382
}
386383

@@ -430,7 +427,7 @@ export function buildStartBlockOutput(options: StartBlockOutputOptions): Normali
430427
return buildManualTriggerOutput(finalInput, workflowInput)
431428

432429
case StartBlockPath.EXTERNAL_TRIGGER:
433-
return buildIntegrationTriggerOutput(finalInput, workflowInput)
430+
return buildIntegrationTriggerOutput(workflowInput)
434431

435432
case StartBlockPath.LEGACY_STARTER:
436433
return buildLegacyStarterOutput(

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ interface RssFeed {
4848
}
4949

5050
export interface RssWebhookPayload {
51+
title?: string
52+
link?: string
53+
pubDate?: string
5154
item: RssItem
5255
feed: {
5356
title?: string
@@ -349,6 +352,9 @@ async function processRssItems(
349352
`${webhookData.id}:${itemGuid}`,
350353
async () => {
351354
const payload: RssWebhookPayload = {
355+
title: item.title,
356+
link: item.link,
357+
pubDate: item.pubDate,
352358
item: {
353359
title: item.title,
354360
link: item.link,

0 commit comments

Comments
 (0)