mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix message
This commit is contained in:
@@ -78,8 +78,9 @@ class Base extends Types
|
||||
|
||||
$collection = $collections[$collection];
|
||||
|
||||
$this->collection = new Document();
|
||||
$this->collection->setAttribute('$id', $collection['$id']);
|
||||
$this->collection = new Document([
|
||||
'$id' => $collection['$id'],
|
||||
]);
|
||||
|
||||
foreach ($collection['attributes'] as $attribute) {
|
||||
$attr = new Document([
|
||||
|
||||
@@ -92,7 +92,7 @@ class Types extends Validator
|
||||
!empty($query->getAttribute()) &&
|
||||
!in_array($query->getAttribute(), $this->allowedAttributes)
|
||||
) {
|
||||
throw new \Exception("Invalid query: Attribute not found in schema:{$query->getAttribute()}");
|
||||
throw new \Exception("Invalid query: Attribute not found in schema: {$query->getAttribute()}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user