1
0
Fork 0
mirror of synced 2024-10-02 18:26:49 +13:00

Merge remote-tracking branch 'origin/1.0.x' into feat-graphql-support

# Conflicts:
#	CHANGES.md
This commit is contained in:
Jake Barnby 2022-10-19 13:21:06 +13:00
commit c2e0ef3f98
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 6 additions and 1 deletions

View file

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

View file

@ -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)) {