From e2071bd5dd68c3782f852eadde994ef9bad7b4cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Tue, 10 Feb 2026 11:48:29 +0100 Subject: [PATCH] add backwards compatibility --- app/controllers/api/projects.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 33dda5d9b9..2cc3510f6f 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -1182,6 +1182,11 @@ Http::get('/v1/projects/:projectId/keys') throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } + // Backwards compatibility + if (\count(Query::getByType($queries, [Query::TYPE_LIMIT])) === 0) { + $queries[] = Query::limit(5000); + } + $queries[] = Query::equal('resourceType', ['projects']); $queries[] = Query::equal('resourceInternalId', [$project->getSequence()]);