mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Revert Base
This commit is contained in:
parent
42f72b4477
commit
0648de2046
2 changed files with 4 additions and 13 deletions
|
|
@ -60,13 +60,11 @@ class Base extends Queries
|
|||
'type' => Database::VAR_STRING,
|
||||
'array' => false,
|
||||
]);
|
||||
|
||||
$attributes[] = new Document([
|
||||
'key' => '$createdAt',
|
||||
'type' => Database::VAR_DATETIME,
|
||||
'array' => false,
|
||||
]);
|
||||
|
||||
$attributes[] = new Document([
|
||||
'key' => '$updatedAt',
|
||||
'type' => Database::VAR_DATETIME,
|
||||
|
|
@ -78,15 +76,8 @@ class Base extends Queries
|
|||
new Offset(),
|
||||
new Cursor(),
|
||||
new Filter($attributes, APP_DATABASE_QUERY_MAX_VALUES),
|
||||
new Order(
|
||||
array_merge($attributes, [
|
||||
new Document([
|
||||
'key' => '$internalId',
|
||||
'type' => Database::VAR_STRING,
|
||||
'array' => false,
|
||||
])
|
||||
])
|
||||
)];
|
||||
new Order($attributes),
|
||||
];
|
||||
|
||||
parent::__construct($validators);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ class DatabasesCustomServerTest extends Scope
|
|||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
'queries' => [
|
||||
Query::orderDesc()->toString(),
|
||||
Query::orderDesc()->setAttribute('')->toString(),
|
||||
],
|
||||
]);
|
||||
|
||||
|
|
@ -453,7 +453,7 @@ class DatabasesCustomServerTest extends Scope
|
|||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
'queries' => [
|
||||
Query::orderDesc()->toString(),
|
||||
Query::orderDesc()->setAttribute('')->toString(),
|
||||
],
|
||||
]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue