mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: contest: fix problemlist records display
This commit is contained in:
1 parent
6fda759d4e
commit
34b0cc4d14
1 file changed
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user