resolved #57, resolved #58

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2024-02-22 22:58:45 +07:00
parent 6c4c0b1ada
commit 8df0254271
3 changed files with 3 additions and 3 deletions

View File

@ -309,7 +309,7 @@ final class market extends core
// Создание магазина // Создание магазина
$market = model::create( $market = model::create(
data: [ data: [
'id' => $id, 'id' => (string) $id,
'name' => [ 'name' => [
'first' => $parameters['market_name_first'], 'first' => $parameters['market_name_first'],
'second' => $parameters['market_name_second'], 'second' => $parameters['market_name_second'],

View File

@ -381,7 +381,7 @@ final class account extends core
{ {
try { try {
if (collection::init(static::$arangodb->session, self::COLLECTION)) 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('Не удалось создать аккаунт');
else throw new exception('Не удалось инициализировать коллекцию'); else throw new exception('Не удалось инициализировать коллекцию');
} catch (exception $e) { } catch (exception $e) {

View File

@ -64,7 +64,7 @@ final class task extends core
?string $end = null, ?string $end = null,
?string $market = null, ?string $market = null,
bool $confirmed = false, bool $confirmed = false,
bool $published = true, bool $published = false,
bool $hided = false, bool $hided = false,
bool $problematic = false, bool $problematic = false,
bool $completed = false, bool $completed = false,