Skip to content

Commit 7a24574

Browse files
committed
updated so individual failed invitataions have 'userId' field instead of 'id' to make it clear
1 parent a3190cf commit 7a24574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/projectMemberInvites/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ module.exports = [
216216
});
217217
if (forbidUserList.length > 0) {
218218
const message = 'cannot be added with a Manager role to the project';
219-
failed = _.concat(failed, _.map(forbidUserList, id => _.assign({}, { id, message })));
219+
failed = _.concat(failed, _.map(forbidUserList, id => _.assign({}, { userId: id, message })));
220220
updatedInvite.userIds = _.filter(invite.userIds, userId => !_.includes(forbidUserList, userId));
221221
}
222222
}

0 commit comments

Comments
 (0)