Removing is_migrating

This commit is contained in:
= 2020-11-01 14:21:39 +11:00
parent dfb55dbd8b
commit e4b326c423
2 changed files with 1 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class WebhookHandler implements ShouldQueue
*/ */
public function handle() :bool 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; return true;
} }

View File

@ -89,7 +89,6 @@ class UserRepository extends BaseRepository
$cu->fill($data['company_user']); $cu->fill($data['company_user']);
$cu->restore(); $cu->restore();
$cu->tokens()->restore(); $cu->tokens()->restore();
$cu->is_migrating = true;
$cu->save(); $cu->save();
} }