Skip to content

Commit 0bc433f

Browse files
authored
Release: ingest → research_complete for infographic pipeline
Release: ingest → research_complete for infographic pipeline
2 parents 00a8389 + 14c0458 commit 0bc433f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/api/cron/ingest/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ async function createSanityDocuments(
502502
const isFlagged = criticResult.score < qualityThreshold;
503503
// When research is in-flight, status is "researching" (check-research cron will transition to script_ready)
504504
const isResearching = !!researchInteractionId;
505-
const status = isFlagged ? "flagged" : isResearching ? "researching" : "script_ready";
505+
// Route through research_complete so check-research generates infographics before enrichment
506+
const status = isFlagged ? "flagged" : isResearching ? "researching" : "research_complete";
506507

507508
const contentIdea = await writeClient.create({
508509
_type: "contentIdea",

0 commit comments

Comments
 (0)