Browse Source

try to unset productId

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

+ 2 - 2
app/Cron/BackupRemove.php

@@ -126,7 +126,7 @@ class BackupRemove extends Command
         }
         $whmcsParams = di('whmcsParams');
         $whmcsParams->setParams($params);
-        unset($this->vm, $this->api, $this->configuration);
+        unset($this->vm, $this->api, $this->configuration, $this->productId);
         $storage        = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
         $fileRepository = new FileRepository();
         $fileRepository->setApi($this->api());
@@ -193,7 +193,7 @@ class BackupRemove extends Command
                         $params
                     );
 
-        unset($this->vm, $this->api, $this->configuration);
+        unset($this->vm, $this->api, $this->configuration, $this->productId);
         $storage        = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
         $fileRepository = new FileRepository();
         $fileRepository->setApi($this->api());