From 2cf9364498d6c029631df8f71b339bdccd10dbd3 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 1 Mar 2022 21:53:28 +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); }