mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01: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
@@ -245,8 +245,8 @@ class DiscussionDetailHandler extends DiscussionHandler {
|
|||||||
for (const uid of uids) {
|
for (const uid of uids) {
|
||||||
message.send(1, uid, msg, message.FLAG_RICHTEXT | message.FLAG_UNREAD);
|
message.send(1, uid, msg, message.FLAG_RICHTEXT | message.FLAG_UNREAD);
|
||||||
}
|
}
|
||||||
await discussion.addReply(domainId, did, this.user._id, content, this.request.ip);
|
const drid = await discussion.addReply(domainId, did, this.user._id, content, this.request.ip);
|
||||||
this.back();
|
this.back({ drid });
|
||||||
}
|
}
|
||||||
|
|
||||||
@param('drid', Types.ObjectID)
|
@param('drid', Types.ObjectID)
|
||||||
|
|||||||
@@ -776,8 +776,8 @@ export class ProblemSolutionHandler extends ProblemDetailHandler {
|
|||||||
@param('content', Types.Content)
|
@param('content', Types.Content)
|
||||||
async postSubmit(domainId: string, content: string) {
|
async postSubmit(domainId: string, content: string) {
|
||||||
this.checkPerm(PERM.PERM_CREATE_PROBLEM_SOLUTION);
|
this.checkPerm(PERM.PERM_CREATE_PROBLEM_SOLUTION);
|
||||||
await solution.add(domainId, this.pdoc.docId, this.user._id, content);
|
const psid = await solution.add(domainId, this.pdoc.docId, this.user._id, content);
|
||||||
this.back();
|
this.back({ psid });
|
||||||
}
|
}
|
||||||
|
|
||||||
@param('content', Types.Content)
|
@param('content', Types.Content)
|
||||||
|
|||||||
Reference in new issue
Block a user