core: !EXPERIMENTAL! 支持跨域引用题目

This commit is contained in:
undefined committed 2021-05-28 22:10:16 +08:00
1 parent 33d7c70ef6
commit d897391e9a
25 files changed
+434 -392

No files matched your search

+1 -1
View File
@@ -247,7 +247,7 @@ export class ProblemSubmitHandler extends ProblemDetailHandler {
async get(domainId: string, pid: string | number) {
this.response.template = 'problem_submit.html';
const rdocs = await record
.getUserInProblemMulti(domainId, this.user._id, this.pdoc.docId)
.getUserInProblemMulti(domainId, this.user._id, pid)
.sort({ _id: -1 })
.limit(10)
.toArray();