HostedUsers console command
This commit is contained in:
parent
7469ca30eb
commit
2e1a6ef6c4
|
|
@ -41,19 +41,21 @@ class HostedUsers extends Command
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
Company::on('db-ninja-01')->all()->each(function ($company){
|
||||
|
||||
Company::on('db-ninja-01')->each(function ($company){
|
||||
|
||||
if(Ninja::isHosted())
|
||||
\Modules\Admin\Jobs\Account\NinjaUser::dispatchNow([], $company);
|
||||
|
||||
});
|
||||
|
||||
Company::on('db-ninja-02')->all()->each(function ($company){
|
||||
Company::on('db-ninja-02')->each(function ($company){
|
||||
|
||||
if(Ninja::isHosted())
|
||||
\Modules\Admin\Jobs\Account\NinjaUser::dispatchNow([], $company);
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue