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