mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +01:00
Update user observer to dispatch a job
This commit is contained in:
parent
acb756b229
commit
5e8bcc04dc
@ -23,8 +23,10 @@ class UserObserver
|
|||||||
*/
|
*/
|
||||||
public function created(User $user)
|
public function created(User $user)
|
||||||
{
|
{
|
||||||
if(class_exists(\Modules\Admin\Jobs\Account\UserQuality::class))
|
|
||||||
(new \Modules\Admin\Jobs\Account\UserQuality($user, $user->account->key))->run();
|
if(class_exists(\Modules\Admin\Jobs\Account\UserQuality::class))
|
||||||
|
\Modules\Admin\Jobs\Account\UserQuality::dispatch($user, $user->account->key);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -36,8 +38,9 @@ class UserObserver
|
|||||||
public function updated(User $user)
|
public function updated(User $user)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(class_exists(\Modules\Admin\Jobs\Account\UserQuality::class))
|
if(class_exists(\Modules\Admin\Jobs\Account\UserQuality::class))
|
||||||
(new \Modules\Admin\Jobs\Account\UserQuality($user, $user->account->key))->run();
|
\Modules\Admin\Jobs\Account\UserQuality::dispatch($user, $user->account->key);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user