mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
错误修复
This commit is contained in:
1 parent
fff2172c38
commit
257d9814a9
15 files changed
+57
-63
No files matched your search
@@ -43,8 +43,8 @@ class ContestListHandler extends ContestHandler {
|
||||
}
|
||||
|
||||
class ContestDetailHandler extends ContestHandler {
|
||||
async _prepare({ tid }) {
|
||||
this.tdoc = await contest.get(tid);
|
||||
async _prepare({ domainId, tid }) {
|
||||
this.tdoc = await contest.get(domainId, tid);
|
||||
}
|
||||
|
||||
async get({ domainId, page = 1 }) {
|
||||
@@ -66,7 +66,7 @@ class ContestDetailHandler extends ContestHandler {
|
||||
for (const i in psdict) rdict[psdict[i].rid] = { _id: psdict[i].rid };
|
||||
}
|
||||
} else attended = false;
|
||||
const udict = await user.getList([this.tdoc.owner]);
|
||||
const udict = await user.getList(domainId, [this.tdoc.owner]);
|
||||
const path = [
|
||||
['Hydro', '/'],
|
||||
['contest_main', '/c'],
|
||||
|
||||
Reference in new issue
Block a user