From cccbdc5355085c5ba1521baac9b2a2b4f7ca9dfb Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 7 Mar 2022 08:58:18 +1100 Subject: [PATCH] Set all companies to large when performing migration --- app/Jobs/Util/Import.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Jobs/Util/Import.php b/app/Jobs/Util/Import.php index ca5b45dd00b0..3722127f5d65 100644 --- a/app/Jobs/Util/Import.php +++ b/app/Jobs/Util/Import.php @@ -237,7 +237,8 @@ class Import implements ShouldQueue //company size check if ($this->company->invoices()->count() > 500 || $this->company->products()->count() > 500 || $this->company->clients()->count() > 500) { - $this->company->is_large = true; + // $this->company->is_large = true; + $this->company->account->companies()->update(['is_large' => true]); }