mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Reapply "chore: update composer.json and composer.lock to include appwrite-lab…"
This reverts commit 99ccd64b4c.
This commit is contained in:
parent
99ccd64b4c
commit
1cd69e26f8
2 changed files with 3 additions and 1 deletions
|
|
@ -649,6 +649,8 @@ App::get('/v1/users')
|
|||
$total = $dbForProject->count('users', $filterQueries, APP_LIMIT_COUNT);
|
||||
} catch (OrderException $e) {
|
||||
throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null.");
|
||||
} catch (QueryException $e) {
|
||||
throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage());
|
||||
}
|
||||
$response->dynamic(new Document([
|
||||
'users' => $users,
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ class Mapper
|
|||
];
|
||||
|
||||
if (!$rule['required']) {
|
||||
$fields[$escapedKey]['defaultValue'] = $rule['default'];
|
||||
$fields[$escapedKey]['defaultValue'] = $rule['default'] ?? null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue