From 88f6a67802779e0d3c3510c9ffbb7d4d39a4b599 Mon Sep 17 00:00:00 2001 From: shimon Date: Wed, 17 Aug 2022 10:36:38 +0300 Subject: [PATCH] sync with 0.16 --- app/controllers/api/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index f9127f198d..1493210536 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);