修复discussion模块

This commit is contained in:
undefined committed 2020-05-01 18:43:40 +08:00
1 parent 2554cf660a
commit 33e277f28f
30 files changed
+2460 -187

No files matched your search

+2 -2
View File
@@ -25,8 +25,8 @@ class DiscussionHandler extends Handler {
if (did) {
this.ddoc = await discussion.get(did);
if (!this.ddoc) throw new DiscussionNotFoundError(did);
type = this.ddoc.type;
docId = this.ddoc.parent;
type = this.ddoc.parentType;
docId = this.ddoc.parentId;
if (drid) {
this.drdoc = await discussion.getReply(drid, did);
if (!this.drdoc) throw new DiscussionNotFoundError(drid);