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

feat: update error in Exception constructor

This commit is contained in:
Christy Jacob 2023-07-10 08:04:27 +00:00
parent c6be81592f
commit 982373c915

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