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 GitHub
parent 2752d5fa03
commit 4b07b31126
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 })