fix(shorts): pass category through generate -> scripts POST -> DB

This commit is contained in:
asepharyana
2026-09-22 22:21:13 +07:00
parent 897c33eeac
commit e7fc629e54
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -290,6 +290,7 @@ Return JSON: { "results": [{ "claim": "...", "verdict": "correct|incorrect|uncer
sourceUrls: factCheck.sourceUrls,
},
status: "draft",
category: category || "brands",
createdAt: new Date().toISOString().split("T")[0],
});
}
+1
View File
@@ -29,6 +29,7 @@ export async function POST(req: NextRequest) {
fullScript: body.fullScript || null,
status: body.status || "draft",
rejectedReason: body.rejectedReason || null,
category: body.category || "brands",
// SEO Package
seoTitle: body.seoTitle || null,
seoDescription: body.seoDescription || null,