1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00

sync with 0.16

This commit is contained in:
shimon 2022-08-17 10:36:38 +03:00
parent cc887beae9
commit 88f6a67802

View file

@ -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);