fix(shorts): pass category through generate -> scripts POST -> DB
This commit is contained in:
1 parent
897c33eeac
commit
e7fc629e54
2 files changed
+2
No files matched your search
@@ -290,6 +290,7 @@ Return JSON: { "results": [{ "claim": "...", "verdict": "correct|incorrect|uncer
|
|||||||
sourceUrls: factCheck.sourceUrls,
|
sourceUrls: factCheck.sourceUrls,
|
||||||
},
|
},
|
||||||
status: "draft",
|
status: "draft",
|
||||||
|
category: category || "brands",
|
||||||
createdAt: new Date().toISOString().split("T")[0],
|
createdAt: new Date().toISOString().split("T")[0],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -29,6 +29,7 @@ export async function POST(req: NextRequest) {
|
|||||||
fullScript: body.fullScript || null,
|
fullScript: body.fullScript || null,
|
||||||
status: body.status || "draft",
|
status: body.status || "draft",
|
||||||
rejectedReason: body.rejectedReason || null,
|
rejectedReason: body.rejectedReason || null,
|
||||||
|
category: body.category || "brands",
|
||||||
// SEO Package
|
// SEO Package
|
||||||
seoTitle: body.seoTitle || null,
|
seoTitle: body.seoTitle || null,
|
||||||
seoDescription: body.seoDescription || null,
|
seoDescription: body.seoDescription || null,
|
||||||
|
|||||||
Reference in new issue
Block a user