fixes #1879 – race condition in websockets service

This commit is contained in:
Tom Moor committed 2021-02-22 21:53:20 -08:00
1 parent 2195787e7d
commit cd7cbab5ac
1 file changed
+4
+4
View File
@@ -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;