Skip to content

Commit

Permalink
Fix user reinvitation
Browse files Browse the repository at this point in the history
  • Loading branch information
mcapeta committed May 23, 2022
1 parent 34d4069 commit 957193e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/user/user.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function changePassword({ user, body }, res) {
}

function reinvite({ params }, res) {
return User.findByPk(params.id)
return User.unscoped().findByPk(params.id)
.then(user => user || createError(NOT_FOUND, 'User does not exist!'))
.then(user => User.sendInvitation(user))
.then(() => res.status(ACCEPTED).end());
Expand Down

0 comments on commit 957193e

Please sign in to comment.