core: fix PERM_VIEW_DISPLAYNAME

This commit is contained in:
undefined committed 2024-05-12 17:33:23 +08:00
1 parent 597ec6f202
commit 19fd8b13ab
3 files changed
+54 -8

No files matched your search

+1 -1
View File
@@ -232,7 +232,7 @@ export default class RecordModel {
judger: null,
};
if (isRejudge) upd.rejudged = true;
await RecordModel.collStat.deleteOne(rid instanceof Array ? { _id: { $in: rid } } : { _id: rid });
await RecordModel.collStat.deleteMany(rid instanceof Array ? { _id: { $in: rid } } : { _id: rid });
await task.deleteMany(rid instanceof Array ? { rid: { $in: rid } } : { rid });
return RecordModel.update(domainId, rid, upd);
}