diff --git a/src/routes/projectMemberInvites/update.js b/src/routes/projectMemberInvites/update.js index a5ba6b5a..6e1e0945 100644 --- a/src/routes/projectMemberInvites/update.js +++ b/src/routes/projectMemberInvites/update.js @@ -116,7 +116,7 @@ module.exports = [ const member = { projectId, role: updatedInvite.role, - userId: updatedInvite.userId, + userId: _.get(updatedInvite, 'userId', req.authUser.userId), createdBy: req.authUser.userId, updatedBy: req.authUser.userId, };