From 8df0254271c5fed853b63e2f379fd1515c5bd0cc Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Thu, 22 Feb 2024 22:58:45 +0700 Subject: [PATCH] resolved #57, resolved #58 --- mirzaev/ebala/system/controllers/market.php | 2 +- mirzaev/ebala/system/models/account.php | 2 +- mirzaev/ebala/system/models/task.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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,