Apply suggestions from code review
This commit is contained in:
parent
0304adf872
commit
7cd995ac3c
2 changed files with 2 additions and 6 deletions
|
@ -16,10 +16,6 @@ class Attributes extends Base
|
|||
'error'
|
||||
];
|
||||
|
||||
public const PROHIBITED_QUERIES = [
|
||||
Select::class
|
||||
];
|
||||
|
||||
/**
|
||||
* Expression constructor
|
||||
*
|
||||
|
|
|
@ -338,7 +338,7 @@ trait DatabasesBase
|
|||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
'x-appwrite-key' => $this->getProject()['apiKey'],
|
||||
]), [
|
||||
'queries' => ['select(key)'],
|
||||
'queries' => ['select(["key"])'],
|
||||
]);
|
||||
$this->assertEquals(Exception::GENERAL_ARGUMENT_INVALID, $response['body']['type']);
|
||||
$this->assertEquals(400, $response['headers']['status-code']);
|
||||
|
@ -1095,7 +1095,7 @@ trait DatabasesBase
|
|||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
'x-appwrite-key' => $this->getProject()['apiKey'],
|
||||
]), [
|
||||
'queries' => ['select(key)'],
|
||||
'queries' => ['select(["key"])'],
|
||||
]);
|
||||
$this->assertEquals(Exception::GENERAL_ARGUMENT_INVALID, $response['body']['type']);
|
||||
$this->assertEquals(400, $response['headers']['status-code']);
|
||||
|
|
Loading…
Reference in a new issue