detach company/dashboard after deletion
This commit is contained in:
parent
5f8295fafa
commit
9a82779f99
@ -40,6 +40,8 @@ class DeleteCompany extends Job
|
||||
'recurring', 'reports', 'settings', 'taxes', 'transactions', 'transfers', 'widgets',
|
||||
]);
|
||||
|
||||
$this->company->users()->detach();
|
||||
|
||||
$this->company->delete();
|
||||
});
|
||||
|
||||
|
@ -33,6 +33,8 @@ class DeleteDashboard extends Job
|
||||
\DB::transaction(function () {
|
||||
$this->deleteRelationships($this->dashboard, ['widgets']);
|
||||
|
||||
$this->dashboard->users()->detach();
|
||||
|
||||
$this->dashboard->delete();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user