mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix contest unlock status (#577)
This commit is contained in:
1 parent
fc27b795e0
commit
15220f18b7
1 file changed
+1
@@ -839,6 +839,7 @@ export async function recalcStatus(domainId: string, tid: ObjectId) {
|
|||||||
export async function unlockScoreboard(domainId: string, tid: ObjectId) {
|
export async function unlockScoreboard(domainId: string, tid: ObjectId) {
|
||||||
const tdoc = await document.get(domainId, document.TYPE_CONTEST, tid);
|
const tdoc = await document.get(domainId, document.TYPE_CONTEST, tid);
|
||||||
if (!tdoc.lockAt || tdoc.unlocked) return;
|
if (!tdoc.lockAt || tdoc.unlocked) return;
|
||||||
|
await recalcStatus(domainId, tid);
|
||||||
await edit(domainId, tid, { unlocked: true });
|
await edit(domainId, tid, { unlocked: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user