parent
6c4c0b1ada
commit
8df0254271
|
@ -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'],
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
|
Reference in New Issue