Skip to content

Commit 301e4a9

Browse files
committed
quickfix: unit meta data overwrite in case of owner removed - resolved
1 parent 05b83bb commit 301e4a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

imports/api/unit-roles-data.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ export function removeRoleMember (requestorId, unitBzId, email, errorLogParams)
129129
// Removing the user from the unit's owners list if it was included
130130
if (unitMeta.ownerIds.includes(userToRemove._id)) {
131131
UnitMetaData.update({ bzId: unitBzId }, {
132-
ownerIds: userToRemove._id
132+
$pull: {
133+
ownerIds: userToRemove._id
134+
}
133135
})
134136
}
135137

0 commit comments

Comments
 (0)