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