Merge remote-tracking branch 'origin/1.0.x' into feat-graphql-support
# Conflicts: # CHANGES.md
This commit is contained in:
commit
c2e0ef3f98
2 changed files with 6 additions and 1 deletions
|
@ -3,6 +3,10 @@
|
|||
## Bugs
|
||||
- Fix license detection for Flutter and Dart SDKs [#4435](https://github.com/appwrite/appwrite/pull/4435)
|
||||
|
||||
# Version 1.0.4
|
||||
## Bugs
|
||||
- Fix project pagination in DB usage collector [#4517](https://github.com/appwrite/appwrite/pull/4517)
|
||||
|
||||
# Version 1.0.3
|
||||
## Bugs
|
||||
- Fix document audit deletion [#4429](https://github.com/appwrite/appwrite/pull/4429)
|
||||
|
|
|
@ -135,7 +135,6 @@ class Database extends Calculator
|
|||
$results = [];
|
||||
$sum = $limit;
|
||||
$latestDocument = null;
|
||||
$this->database->setNamespace('_' . $projectId);
|
||||
|
||||
while ($sum === $limit) {
|
||||
try {
|
||||
|
@ -143,6 +142,8 @@ class Database extends Calculator
|
|||
if ($latestDocument !== null) {
|
||||
$paginationQueries[] = Query::cursorAfter($latestDocument);
|
||||
}
|
||||
|
||||
$this->database->setNamespace('_' . $projectId);
|
||||
$results = $this->database->find($collection, \array_merge($paginationQueries, $queries));
|
||||
} catch (\Exception $e) {
|
||||
if (is_callable($this->errorHandler)) {
|
||||
|
|
Loading…
Reference in a new issue