Skip to content

Commit c03fa89

Browse files
author
Parth Shah
committed
adding projectId where clause to update api
1 parent 53cbd23 commit c03fa89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/routes/projectMembers/update.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ module.exports = [
7373
operations.push(models.ProjectMember.update({ isPrimary: false, updatedBy: req.authUser.userId },
7474
{
7575
where: {
76+
projectId,
7677
isPrimary: true,
7778
role: updatedProps.role,
7879
id: {

0 commit comments

Comments
 (0)