From 2ccf6d5c1626a81af6b1ddc0b210ae76537928b1 Mon Sep 17 00:00:00 2001 From: Vikas Agarwal Date: Sat, 16 Mar 2019 10:08:56 +0530 Subject: [PATCH] =?UTF-8?q?Github=20issue#2920,=20Some=20project=20team=20?= =?UTF-8?q?member=20are=20being=20joined=20with=20null=20userId=20?= =?UTF-8?q?=E2=80=94=20Potential=20fix=20for=20the=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/projectMemberInvites/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, };