From 4e24b117f54296ab23558411af645cf09a4c4c7b Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 18 Jan 2026 16:30:40 +0200 Subject: [PATCH] fix schema resource --- app/init/resources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/init/resources.php b/app/init/resources.php index 2f43ee008b..17c1c6bc9a 100644 --- a/app/init/resources.php +++ b/app/init/resources.php @@ -863,7 +863,7 @@ App::setResource('schema', function ($utopia, $dbForProject, $authorization) { $complexity = function (int $complexity, array $args) { $queries = Query::parseQueries($args['queries'] ?? []); - $query = Query::getByType($queries, [Query::TYPE_LIMIT])[0] ?? null; + $query = Query::getLimitQueries($queries)[0] ?? null; $limit = $query ? $query->getValue() : APP_LIMIT_LIST_DEFAULT; return $complexity * $limit;