mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: export drid and psid
This commit is contained in:
1 parent
1ff3e2b49e
commit
9e19eb2614
2 files changed
+4
-4
No files matched your search
@@ -776,8 +776,8 @@ export class ProblemSolutionHandler extends ProblemDetailHandler {
|
||||
@param('content', Types.Content)
|
||||
async postSubmit(domainId: string, content: string) {
|
||||
this.checkPerm(PERM.PERM_CREATE_PROBLEM_SOLUTION);
|
||||
await solution.add(domainId, this.pdoc.docId, this.user._id, content);
|
||||
this.back();
|
||||
const psid = await solution.add(domainId, this.pdoc.docId, this.user._id, content);
|
||||
this.back({ psid });
|
||||
}
|
||||
|
||||
@param('content', Types.Content)
|
||||
|
||||
Reference in new issue
Block a user