Skip to content

Commit

Permalink
Merge pull request #968 from ExtensionEngine/feature/fix-user-reinvit…
Browse files Browse the repository at this point in the history
…ation

Fix "reinvite" user action
  • Loading branch information
underscope authored Jul 20, 2022
2 parents 671e0a7 + eb10b7a commit da1e580
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 da1e580

Please sign in to comment.