mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: fix discussion hidden handler
This commit is contained in:
1 file changed
+1
-1
@@ -347,7 +347,7 @@ export function apply(ctx: Context) {
|
|||||||
result.domainId, document.TYPE_DISCUSSION,
|
result.domainId, document.TYPE_DISCUSSION,
|
||||||
{ parentType: document.TYPE_PROBLEM, parentId: result.docId },
|
{ parentType: document.TYPE_PROBLEM, parentId: result.docId },
|
||||||
).project({ docId: 1 }).map((ddoc) => ddoc.docId).toArray();
|
).project({ docId: 1 }).map((ddoc) => ddoc.docId).toArray();
|
||||||
return await coll.updateMany({ _id: { $in: dids } }, { $set: { hidden: result.hidden } });
|
return await document.coll.updateMany({ _id: { $in: dids } }, { $set: { hidden: result.hidden } });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user