From 384fcd67b2e87e1f7941eb928fe86d1601bca6c5 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 2 Jul 2020 10:36:04 +1000 Subject: [PATCH] Fixes for test data --- app/Console/Commands/DemoMode.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/DemoMode.php b/app/Console/Commands/DemoMode.php index 918228914572..cafec284f086 100644 --- a/app/Console/Commands/DemoMode.php +++ b/app/Console/Commands/DemoMode.php @@ -90,6 +90,7 @@ class DemoMode extends Command $company = factory(\App\Models\Company::class)->create([ 'account_id' => $account->id, 'slack_webhook_url' => config('ninja.notification.slack'), + 'enabled_modules' => 4095, ]); @@ -154,7 +155,6 @@ class DemoMode extends Command ]); } - factory(\App\Models\Product::class, 50)->create([ 'user_id' => $user->id, 'company_id' => $company->id, @@ -166,7 +166,10 @@ class DemoMode extends Command $z = $x+1; $this->info("Creating client # ".$z); - $this->createClient($company, $user); + if(rand(0,1)) + $this->createClient($company, $user); + else + $this->createClient($company, $u2); } for($x=0; $x<$this->count; $x++)