mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:24:29 -04:00
HostedUsers console command
This commit is contained in:
parent
7469ca30eb
commit
2e1a6ef6c4
@ -41,19 +41,21 @@ class HostedUsers extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
Company::on('db-ninja-01')->all()->each(function ($company){
|
|
||||||
|
Company::on('db-ninja-01')->each(function ($company){
|
||||||
|
|
||||||
if(Ninja::isHosted())
|
if(Ninja::isHosted())
|
||||||
\Modules\Admin\Jobs\Account\NinjaUser::dispatchNow([], $company);
|
\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())
|
if(Ninja::isHosted())
|
||||||
\Modules\Admin\Jobs\Account\NinjaUser::dispatchNow([], $company);
|
\Modules\Admin\Jobs\Account\NinjaUser::dispatchNow([], $company);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user