From 08996cc82428e3ffc9ca72c341c9dde335b917d5 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 3 Jul 2026 17:59:01 +0530 Subject: [PATCH] (fix): remove no-effect 'use Throwable' statement in shared api controller --- app/controllers/shared/api.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 32a04760d9..b3fb5f4d89 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -24,7 +24,6 @@ use Appwrite\Usage\Context; use Appwrite\Utopia\Database\Documents\User; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; -use Throwable; use Utopia\Abuse\Abuse; use Utopia\Bus\Bus; use Utopia\Cache\Adapter\Filesystem; @@ -1177,7 +1176,7 @@ Http::shutdown() $authorization->skip(fn () => $dbForPlatform->updateDocument('projects', $project->getId(), new Document([ 'onboarding' => $byMethod, ]))); - } catch (Throwable) { + } catch (\Throwable) { // Missing `onboarding` attribute on upgraded installs must not break the request lifecycle. } });