demo 20-4-2026
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user