Skip to content

Commit e271c98

Browse files
Miriadresearch
andcommitted
fix(ingest): update to handle infographicUrls array from research payload
Co-authored-by: research <research@miriad.systems>
1 parent e844d3b commit e271c98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/api/cron/ingest/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ function buildPrompt(trends: TrendResult[], research?: ResearchPayload): string
152152
}
153153
}
154154

155-
if (research.infographicUrl) {
156-
researchContext += `\n### Infographic Available\nAn infographic has been generated for this topic. Use sceneType "narration" with bRollUrl pointing to the infographic for at least one scene.\n`;
155+
if (research.infographicUrls && research.infographicUrls.length > 0) {
156+
researchContext += `\n### Infographics Available (${research.infographicUrls.length})\nMultiple infographics have been generated for this topic. Use sceneType "narration" with bRollUrl pointing to an infographic for visual scenes.\n`;
157157
}
158158
}
159159

0 commit comments

Comments
 (0)