diff --git a/mirzaev/ebala/system/controllers/market.php b/mirzaev/ebala/system/controllers/market.php index 9c8f00e..9141c76 100755 --- a/mirzaev/ebala/system/controllers/market.php +++ b/mirzaev/ebala/system/controllers/market.php @@ -309,7 +309,7 @@ final class market extends core // Создание магазина $market = model::create( data: [ - 'id' => $id, + 'id' => (string) $id, 'name' => [ 'first' => $parameters['market_name_first'], 'second' => $parameters['market_name_second'], diff --git a/mirzaev/ebala/system/models/account.php b/mirzaev/ebala/system/models/account.php index ef6fb55..0205aa4 100755 --- a/mirzaev/ebala/system/models/account.php +++ b/mirzaev/ebala/system/models/account.php @@ -381,7 +381,7 @@ final class account extends core { try { if (collection::init(static::$arangodb->session, self::COLLECTION)) - if ($id = document::write(static::$arangodb->session, self::COLLECTION, $data + ['active' => true])) return $id; + if ($id = (string) document::write(static::$arangodb->session, self::COLLECTION, $data + ['active' => true])) return $id; else throw new exception('Не удалось создать аккаунт'); else throw new exception('Не удалось инициализировать коллекцию'); } catch (exception $e) { diff --git a/mirzaev/ebala/system/models/task.php b/mirzaev/ebala/system/models/task.php index 870cb1d..62c041d 100755 --- a/mirzaev/ebala/system/models/task.php +++ b/mirzaev/ebala/system/models/task.php @@ -64,7 +64,7 @@ final class task extends core ?string $end = null, ?string $market = null, bool $confirmed = false, - bool $published = true, + bool $published = false, bool $hided = false, bool $problematic = false, bool $completed = false,