Removing is_migrating
This commit is contained in:
parent
dfb55dbd8b
commit
e4b326c423
2 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,6 @@ class UserRepository extends BaseRepository
|
|||
$cu->fill($data['company_user']);
|
||||
$cu->restore();
|
||||
$cu->tokens()->restore();
|
||||
$cu->is_migrating = true;
|
||||
$cu->save();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue