core: update vnode selection

This commit is contained in:
undefined committed 2021-08-21 20:17:10 +08:00
1 parent 7377bfadb0
commit 8ae067239c
5 files changed
+9 -4

No files matched your search

+1 -1
View File
@@ -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 };