We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00a8389 + 14c0458 commit 0bc433fCopy full SHA for 0bc433f
1 file changed
app/api/cron/ingest/route.ts
@@ -502,7 +502,8 @@ async function createSanityDocuments(
502
const isFlagged = criticResult.score < qualityThreshold;
503
// When research is in-flight, status is "researching" (check-research cron will transition to script_ready)
504
const isResearching = !!researchInteractionId;
505
- const status = isFlagged ? "flagged" : isResearching ? "researching" : "script_ready";
+ // Route through research_complete so check-research generates infographics before enrichment
506
+ const status = isFlagged ? "flagged" : isResearching ? "researching" : "research_complete";
507
508
const contentIdea = await writeClient.create({
509
_type: "contentIdea",
0 commit comments