From e4b326c4236fc01b0815bdce7081d1bbbd2b4a57 Mon Sep 17 00:00:00 2001 From: = Date: Sun, 1 Nov 2020 14:21:39 +1100 Subject: [PATCH] Removing is_migrating --- app/Jobs/Util/WebhookHandler.php | 2 +- app/Repositories/UserRepository.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Jobs/Util/WebhookHandler.php b/app/Jobs/Util/WebhookHandler.php index 12a9e9285592..e4c947cac3e2 100644 --- a/app/Jobs/Util/WebhookHandler.php +++ b/app/Jobs/Util/WebhookHandler.php @@ -41,7 +41,7 @@ class WebhookHandler implements ShouldQueue */ public function handle() :bool { - if (! $this->entity->company || $this->entity->company->company_users->first()->is_migrating == true) { + if (! $this->entity->company || $this->entity->company->is_disabled) { return true; } diff --git a/app/Repositories/UserRepository.php b/app/Repositories/UserRepository.php index f79f16ce2dff..dfa0c531a117 100644 --- a/app/Repositories/UserRepository.php +++ b/app/Repositories/UserRepository.php @@ -89,7 +89,6 @@ class UserRepository extends BaseRepository $cu->fill($data['company_user']); $cu->restore(); $cu->tokens()->restore(); - $cu->is_migrating = true; $cu->save(); }