mirror of
https://github.com/outline/outline.git
synced 2026-11-22 05:51:43 +03:00
fixes #1879 – race condition in websockets service
This commit is contained in:
1 parent
2195787e7d
commit
cd7cbab5ac
1 file changed
+4
@@ -369,6 +369,10 @@ export default class Websockets {
|
||||
method: ["withMembership", event.userId],
|
||||
}).findByPk(collectionGroup.collectionId);
|
||||
|
||||
if (!collection) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const hasMemberships =
|
||||
collection.memberships.length > 0 ||
|
||||
collection.collectionGroupMemberships.length > 0;
|
||||
|
||||
Reference in new issue
Block a user