user creating flow updated

This commit is contained in:
Sevan Nerse
2022-06-28 21:45:14 +03:00
parent d7c101e025
commit db60980dce
4 changed files with 17 additions and 61 deletions

View File

@ -69,12 +69,10 @@ class CreateUser extends Job implements HasOwner, HasSource, ShouldCreate
'user' => $this->model->id,
'company' => $company->id,
]);
}
if (app()->runningInConsole() || request()->isInstall()) {
continue;
}
$this->dispatch(new CreateInvitation($this->model, $company));
if (! app()->runningInConsole() && ! request()->isInstall()) {
$this->dispatch(new CreateInvitation($this->model));
}
});