mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Remove backups from import / export
This commit is contained in:
parent
9bdcf62684
commit
c4a1295952
@ -105,18 +105,18 @@ class CompanyExport implements ShouldQueue
|
|||||||
|
|
||||||
})->makeHidden(['id'])->all();
|
})->makeHidden(['id'])->all();
|
||||||
|
|
||||||
$this->export_data['backups'] = $this->company->all_activities()->with('backup')->cursor()->map(function ($activity){
|
// $this->export_data['backups'] = $this->company->all_activities()->with('backup')->cursor()->map(function ($activity){
|
||||||
|
|
||||||
$backup = $activity->backup;
|
// $backup = $activity->backup;
|
||||||
|
|
||||||
if(!$backup)
|
// if(!$backup)
|
||||||
return;
|
// return;
|
||||||
|
|
||||||
$backup->activity_id = $this->encodePrimaryKey($backup->activity_id);
|
// $backup->activity_id = $this->encodePrimaryKey($backup->activity_id);
|
||||||
|
|
||||||
return $backup;
|
// return $backup;
|
||||||
|
|
||||||
})->all();
|
// })->all();
|
||||||
|
|
||||||
$this->export_data['users'] = $this->company->users()->withTrashed()->cursor()->map(function ($user){
|
$this->export_data['users'] = $this->company->users()->withTrashed()->cursor()->map(function ($user){
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ class CompanyImport implements ShouldQueue
|
|||||||
'tasks',
|
'tasks',
|
||||||
'payments',
|
'payments',
|
||||||
'activities',
|
'activities',
|
||||||
'backups',
|
// 'backups',
|
||||||
'company_ledger',
|
'company_ledger',
|
||||||
'designs',
|
'designs',
|
||||||
'documents',
|
'documents',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user