Skip to content

Commit e4140b8

Browse files
committed
fix convertor
1 parent 56b2ae2 commit e4140b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

convertors/set-user-workspaces-membership.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ async function run() {
2828

2929
const userDocument = usersDocuments.find(u => u._id.toString() === userId);
3030

31+
if (!userDocument) {
32+
i++;
33+
continue;
34+
}
35+
3136
const memberships = await hawkDb.collection(collectionName).find({}).toArray();
3237

3338
for (const membership of memberships) {

0 commit comments

Comments
 (0)