return values fix
This commit is contained in:
parent
577bc837d8
commit
3e095e14f7
|
@ -179,10 +179,10 @@ class collection
|
|||
// Count and exit (success)
|
||||
return static::execute(
|
||||
<<<'AQL'
|
||||
RETURN LENGTH(@collection)
|
||||
RETURN LENGTH(@@collection)
|
||||
AQL,
|
||||
[
|
||||
'collection' => $collection
|
||||
'@collection' => $collection
|
||||
]
|
||||
);
|
||||
} catch (exception $e) {
|
||||
|
|
|
@ -51,7 +51,7 @@ class document
|
|||
bool $check = false,
|
||||
?terminal $terminal = null,
|
||||
array &$errors = []
|
||||
): ?string {
|
||||
): string|null|false {
|
||||
try {
|
||||
// Инициализация коллекции
|
||||
collection::initialize($collection, isset($data['_from'], $data['_to']) ? type::edge : type::document);
|
||||
|
|
Loading…
Reference in New Issue