diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index f9127f198..149321053 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -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);