Merge pull request #9361 from appwrite/pla-2492

Fix Model Platform is missing response key: store
This commit is contained in:
Christy Jacob 2025-02-17 17:08:17 +05:30 committed by GitHub
commit d0630eae79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}