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