ui: update pid display

This commit is contained in:
undefined committed 2022-12-12 03:16:08 +08:00
1 parent a6f48233d1
commit f4127a806a
4 files changed
+14 -9

No files matched your search

+2 -1
View File
@@ -252,8 +252,9 @@ 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 }).toArray(),
await record.getMulti(domainId, { tid, uid: this.user._id }).sort({ _id: -1 }).toArray(),
]);
this.response.body.canViewRecord = true;
} else {
for (const i of psdocs) this.response.body.rdict[i.rid] = { _id: i.rid };
}