diff --git a/app/Jobs/Util/WebhookHandler.php b/app/Jobs/Util/WebhookHandler.php index 12a9e9285..e4c947cac 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 f79f16ce2..dfa0c531a 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(); }