fix(shorts): pass category through generate -> scripts POST -> DB
This commit is contained in:
@@ -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],
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user