demo 20-4-2026

This commit is contained in:
taDuc
2026-04-19 23:43:31 +07:00
parent 34e709cea4
commit 7804ef842b
6 changed files with 105 additions and 17 deletions

View File

@@ -289,9 +289,9 @@ router.post("/:sectionId/submit", (req, res) => {
throw createHttpError("Section is not editable", 409);
}
const commitId = normalizeId(req.body?.commit_id) || state.head_commit_id;
const commitId = state.head_commit_id;
if (!commitId) {
throw createHttpError("Section has no commit to submit", 400);
throw createHttpError("Section has no head commit to submit", 400);
}
const commit = getCommitForSection(section.id, commitId);