diff --git a/app/Jobs/Company/CompanyExport.php b/app/Jobs/Company/CompanyExport.php index c9ba2d875a61..38e478b3df22 100644 --- a/app/Jobs/Company/CompanyExport.php +++ b/app/Jobs/Company/CompanyExport.php @@ -105,18 +105,18 @@ class CompanyExport implements ShouldQueue })->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) - return; + // if(!$backup) + // 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){ diff --git a/app/Jobs/Company/CompanyImport.php b/app/Jobs/Company/CompanyImport.php index d14b042dc778..408148ef26d4 100644 --- a/app/Jobs/Company/CompanyImport.php +++ b/app/Jobs/Company/CompanyImport.php @@ -143,7 +143,7 @@ class CompanyImport implements ShouldQueue 'tasks', 'payments', 'activities', - 'backups', + // 'backups', 'company_ledger', 'designs', 'documents',