mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Add internalId to orders
This commit is contained in:
parent
25b6d59e30
commit
42f72b4477
1 changed files with 9 additions and 8 deletions
|
|
@ -61,12 +61,6 @@ class Base extends Queries
|
|||
'array' => false,
|
||||
]);
|
||||
|
||||
$attributes[] = new Document([
|
||||
'key' => '$internalId',
|
||||
'type' => Database::VAR_STRING,
|
||||
'array' => false,
|
||||
]);
|
||||
|
||||
$attributes[] = new Document([
|
||||
'key' => '$createdAt',
|
||||
'type' => Database::VAR_DATETIME,
|
||||
|
|
@ -84,8 +78,15 @@ class Base extends Queries
|
|||
new Offset(),
|
||||
new Cursor(),
|
||||
new Filter($attributes, APP_DATABASE_QUERY_MAX_VALUES),
|
||||
new Order($attributes),
|
||||
];
|
||||
new Order(
|
||||
array_merge($attributes, [
|
||||
new Document([
|
||||
'key' => '$internalId',
|
||||
'type' => Database::VAR_STRING,
|
||||
'array' => false,
|
||||
])
|
||||
])
|
||||
)];
|
||||
|
||||
parent::__construct($validators);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue