1
0
Fork 0
mirror of synced 2024-10-02 18:26:49 +13:00

Fix User not found exception

This commit is contained in:
Piotr Rogowski 2022-10-14 18:17:00 +02:00
parent d64effc74f
commit 833e3f8ce1
No known key found for this signature in database
GPG key ID: 4A842D702D9C6F8F

View file

@ -414,7 +414,7 @@ App::get('/v1/users/:userId')
$user = $dbForProject->getDocument('users', $userId);
if ($user->isEmpty()) {
throw new Exception('User not found', 404, Exception::USER_NOT_FOUND);
throw new Exception(Exception::USER_NOT_FOUND);
}
$response->dynamic($user, Response::MODEL_USER);