mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix: use ParsedQuery properties after groupByType
This commit is contained in:
1 parent
471867bcf6
commit
1ededa7727
5 files changed
+9
-9
No files matched your search
@@ -92,7 +92,7 @@ class XList extends PlatformAction
|
||||
}
|
||||
|
||||
$groupedQueries = Query::groupByType($queries);
|
||||
$filterQueries = $groupedQueries['filters'];
|
||||
$filterQueries = $groupedQueries->filters;
|
||||
|
||||
// should be excluded from the user provided query as user query would be used for caching only
|
||||
// otherwise cache will always miss due to the datetime now
|
||||
|
||||
@@ -71,8 +71,8 @@ class XList extends Action
|
||||
$auths = $project->getAttribute('auths', []);
|
||||
$mockNumbers = $auths['mockNumbers'] ?? [];
|
||||
$grouped = Query::groupByType($queries);
|
||||
$limit = $grouped['limit'] ?? null;
|
||||
$offset = $grouped['offset'] ?? 0;
|
||||
$limit = $grouped->limit ?? null;
|
||||
$offset = $grouped->offset ?? 0;
|
||||
|
||||
$total = $includeTotal ? \count($mockNumbers) : 0;
|
||||
$mockNumbers = \array_slice($mockNumbers, $offset, $limit);
|
||||
|
||||
@@ -94,8 +94,8 @@ class XList extends Action
|
||||
$total = $includeTotal ? \count($documents) : 0;
|
||||
|
||||
$grouped = Query::groupByType($queries);
|
||||
$offset = $grouped['offset'] ?? 0;
|
||||
$limit = $grouped['limit'] ?? null;
|
||||
$offset = $grouped->offset ?? 0;
|
||||
$limit = $grouped->limit ?? null;
|
||||
|
||||
$documents = \array_slice($documents, $offset, $limit);
|
||||
|
||||
|
||||
@@ -76,8 +76,8 @@ class XList extends Action
|
||||
$total = $includeTotal ? \count($policies) : 0;
|
||||
|
||||
$grouped = Query::groupByType($queries);
|
||||
$offset = $grouped['offset'] ?? 0;
|
||||
$limit = $grouped['limit'] ?? null;
|
||||
$offset = $grouped->offset ?? 0;
|
||||
$limit = $grouped->limit ?? null;
|
||||
|
||||
$policies = \array_slice($policies, $offset, $limit);
|
||||
|
||||
|
||||
@@ -101,8 +101,8 @@ class XList extends Action
|
||||
$total = $includeTotal ? \count($emailTemplates) : 0;
|
||||
|
||||
$grouped = Query::groupByType($queries);
|
||||
$offset = $grouped['offset'] ?? 0;
|
||||
$limit = $grouped['limit'] ?? null;
|
||||
$offset = $grouped->offset ?? 0;
|
||||
$limit = $grouped->limit ?? null;
|
||||
|
||||
$emailTemplates = \array_slice($emailTemplates, $offset, $limit);
|
||||
|
||||
|
||||
Reference in new issue
Block a user