core: 修复homework无法正确修改题号的问题

This commit is contained in:
undefined committed 2021-03-27 18:34:53 +08:00
1 parent b71011b3b9
commit 34465ba80a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -330,7 +330,7 @@ class HomeworkEditHandler extends HomeworkHandler {
endAt = endAt.toDate();
penaltySince = penaltySince.toDate();
await contest.edit(domainId, tid, {
title, content, beginAt, endAt, verified, penaltySince, penaltyRules, rated,
title, content, beginAt, endAt, pids: verified, penaltySince, penaltyRules, rated,
}, document.TYPE_HOMEWORK);
if (tdoc.beginAt !== beginAt
|| tdoc.endAt !== endAt