1
0
Fork 0
mirror of synced 2024-10-03 19:53:33 +13:00

Merge pull request #5793 from appwrite/fix-error-in-exception

feat: update error in Exception constructor
This commit is contained in:
Christy Jacob 2023-07-11 03:22:01 +05:30 committed by GitHub
commit 0c1f9cc388
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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