Fix document channel disappear after message write (#6477)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-09-03 20:29:16 +04:00 committed by Andrey Sobolev
parent 174d976311
commit 32335e066b
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2

View File

@ -88,7 +88,7 @@
_class,
{
_id: { $in: limit !== -1 ? ids.slice(0, limit) : ids },
space: isChunterSpace ? core.space.Space : undefined
...(isChunterSpace ? { space: core.space.Space } : {})
},
(res) => {
objectsByClass = objectsByClass.set(_class, { docs: res, total: res.total })