core: contest: fix problemlist records display

This commit is contained in:
undefined committed 2023-01-02 21:41:45 +08:00
1 parent 6fda759d4e
commit 34b0cc4d14
1 file changed
+2 -1
+2 -1
View File
@@ -249,7 +249,8 @@ export class ContestProblemListHandler extends ContestDetailBaseHandler {
if (contest.canShowSelfRecord.call(this, this.tdoc)) {
[this.response.body.rdict, this.response.body.rdocs] = await Promise.all([
record.getList(domainId, psdocs.map((i: any) => i.rid)),
await record.getMulti(domainId, { tid, uid: this.user._id }).sort({ _id: -1 }).toArray(),
await record.getMulti(domainId, { contest: tid, uid: this.user._id })
.sort({ _id: -1 }).toArray(),
]);
this.response.body.canViewRecord = true;
} else {