sync with 0.16
This commit is contained in:
parent
cc887beae9
commit
88f6a67802
|
@ -787,7 +787,7 @@ App::patch('/v1/users/:userId/password')
|
|||
->inject('events')
|
||||
->action(function (string $userId, string $password, Response $response, Database $dbForProject, Event $events) {
|
||||
|
||||
$user = $dbForProject->getDocument('users', $userId);
|
||||
$user = $dbForProject->getDocument('users', $userId);
|
||||
|
||||
if ($user->isEmpty()) {
|
||||
throw new Exception(Exception::USER_NOT_FOUND);
|
||||
|
|
Loading…
Reference in a new issue