fix: allow exports with QA warnings
This commit is contained in:
@@ -61,16 +61,13 @@ export async function POST(request: Request, context: RouteContext) {
|
||||
result.qaReport,
|
||||
);
|
||||
const exportStore = getExportStoreFromRuntime();
|
||||
const exportPaths =
|
||||
qaReport.overall_status === "fail"
|
||||
? {}
|
||||
: await exportStore.writeJobExports({
|
||||
jobId,
|
||||
article: optimizedArticle,
|
||||
qaReport,
|
||||
});
|
||||
const exportPaths = await exportStore.writeJobExports({
|
||||
jobId,
|
||||
article: optimizedArticle,
|
||||
qaReport,
|
||||
});
|
||||
await repository.updateArticleJob(jobId, {
|
||||
status: qaReport.overall_status === "fail" ? "qa_failed" : "optimized",
|
||||
status: "optimized",
|
||||
export_paths: exportPaths,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user