|
|
@@ -184,19 +184,19 @@ class BackupRemove extends Command
|
|
|
private function proxmoxCloudVpsProcess($params){
|
|
|
$whmcsParams = di('whmcsParams');
|
|
|
$whmcsParams->setParams($params);
|
|
|
- unset($this->vm, $this->api, $this->configuration);
|
|
|
- $storage = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
|
|
|
- $fileRepository = new FileRepository();
|
|
|
- $fileRepository->setApi($this->api());
|
|
|
|
|
|
logModuleCall(
|
|
|
'ProxmoxCloudVps',
|
|
|
__FUNCTION__,
|
|
|
- $this->configuration(),
|
|
|
+ $this->configuration,
|
|
|
'Debug remove Backup Cron',
|
|
|
- $params['serviceid']
|
|
|
+ $params
|
|
|
);
|
|
|
|
|
|
+ unset($this->vm, $this->api, $this->configuration);
|
|
|
+ $storage = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
|
|
|
+ $fileRepository = new FileRepository();
|
|
|
+ $fileRepository->setApi($this->api());
|
|
|
$fileRepository->findBackupByVmModel(VmModel::ofHostingId($params['serviceid'])->get())
|
|
|
->findByStorages([$storage]);
|
|
|
if($this->configuration()->getBackupStoreDays()){
|