From 4d015cb6f5fc04b48e6c7c92ef38d22a4308f40e Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 1 Mar 2022 21:19:51 +0400 Subject: [PATCH] feat: fix throw --- app/controllers/api/functions.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index d2b273aa41..a8bf793532 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -999,7 +999,6 @@ App::get('/v1/functions/:functionId/executions') $function = Authorization::skip(fn() => $dbForProject->getDocument('functions', $functionId)); - throw new Exception('Function not found', 404, Exception::FUNCTION_NOT_FOUND); if ($function->isEmpty()) { throw new Exception('Function not found', 404, Exception::FUNCTION_NOT_FOUND); }