mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: update vnode selection
This commit is contained in:
1 parent
7377bfadb0
commit
8ae067239c
5 files changed
+9
-4
No files matched your search
@@ -159,7 +159,7 @@ class DiscussionCreateHandler extends DiscussionHandler {
|
||||
if (highlight) this.checkPerm(PERM.PERM_HIGHLIGHT_DISCUSSION);
|
||||
if (pin) this.checkPerm(PERM.PERM_PIN_DISCUSSION);
|
||||
const did = await discussion.add(
|
||||
domainId, typeMapper[type], this.vnode.docId, this.user._id,
|
||||
domainId, typeMapper[type], this.vnode.id, this.user._id,
|
||||
title, content, this.request.ip, highlight, pin,
|
||||
);
|
||||
this.response.body = { did };
|
||||
|
||||
Reference in new issue
Block a user