From 51438631da9b495337e2d9fc676b772a50f31d38 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 14 Feb 2025 15:40:08 +0000 Subject: [PATCH] chore: added console check to ping --- app/controllers/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 1d56e79b74..b785f0dde9 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -1148,7 +1148,7 @@ App::get('/v1/ping') ->inject('dbForPlatform') ->inject('queueForEvents') ->action(function (Response $response, Document $project, Database $dbForPlatform, Event $queueForEvents) { - if ($project->isEmpty()) { + if ($project->isEmpty() || $project->getId() === 'console') { throw new AppwriteException(AppwriteException::PROJECT_NOT_FOUND); }