Browse Source

try to unset productId

andre 3 months ago
parent
commit
e7e2f786ab
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/Cron/BackupRemove.php

+ 3 - 3
app/Cron/BackupRemove.php

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