added db transaction to jobs
This commit is contained in:
@ -27,9 +27,11 @@ class DeleteUser extends Job
|
||||
{
|
||||
$this->authorize();
|
||||
|
||||
$this->user->delete();
|
||||
\DB::transaction(function () {
|
||||
$this->user->delete();
|
||||
|
||||
$this->user->flushCache();
|
||||
$this->user->flushCache();
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user