Skip to content

Commit 2ccf6d5

Browse files
author
Vikas Agarwal
committed
Github issue#2920, Some project team member are being joined with null userId
— Potential fix for the bug
1 parent ea4d430 commit 2ccf6d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/projectMemberInvites/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ module.exports = [
116116
const member = {
117117
projectId,
118118
role: updatedInvite.role,
119-
userId: updatedInvite.userId,
119+
userId: _.get(updatedInvite, 'userId', req.authUser.userId),
120120
createdBy: req.authUser.userId,
121121
updatedBy: req.authUser.userId,
122122
};

0 commit comments

Comments
 (0)