update backend
All checks were successful
Deploy to Production / deploy (push) Successful in 21s

This commit is contained in:
silverpro89
2026-02-23 09:59:22 +07:00
parent b7ba1d02b3
commit cfc83c983c
2 changed files with 105 additions and 104 deletions

View File

@@ -186,13 +186,6 @@ class ContextController {
const { id } = req.params;
const { status } = req.body;
if (![1, 3].includes(parseInt(status))) {
return res.status(400).json({
success: false,
message: 'Status must be 1 (Enriched) or 3 (Generating)'
});
}
const context = await Context.findByPk(id);
if (!context) {
return res.status(404).json({
@@ -201,13 +194,6 @@ class ContextController {
});
}
if (context.status !== 2) {
return res.status(400).json({
success: false,
message: 'Context must be in Prompt Ready status (2) to update'
});
}
await context.update({ status: parseInt(status) });
res.json({