mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +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,
|
||||
{ parentType: document.TYPE_PROBLEM, parentId: result.docId },
|
||||
).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