core: fix remote domain langs config

This commit is contained in:
undefined committed 2022-09-09 19:48:58 +08:00
1 parent 2960549553
commit f1b1c89bf1
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -356,7 +356,7 @@ export class ProblemDetailHandler extends ContestDetailBaseHandler {
if (this.pdoc.config.langs) t.push(this.pdoc.config.langs);
if (ddoc.langs) t.push(ddoc.langs.split(',').map((i) => i.trim()).filter((i) => i));
if (this.domain.langs) t.push(this.domain.langs.split(',').map((i) => i.trim()).filter((i) => i));
if (t.length) this.pdoc.config.langs = intersection(baseLangs, ...t);
this.pdoc.config.langs = intersection(baseLangs, ...t);
}
await bus.serial('problem/get', this.pdoc, this);
[this.psdoc, this.udoc] = await Promise.all([