andre 3 ماه پیش
والد
کامیت
8bf7f338fa
1فایلهای تغییر یافته به همراه9 افزوده شده و 9 حذف شده
  1. 9 9
      app/Cron/BackupRemove.php

+ 9 - 9
app/Cron/BackupRemove.php

@@ -128,15 +128,6 @@ class BackupRemove extends Command
         $whmcsParams->setParams($params);
         unset($this->vm, $this->api, $this->configuration);
         $storage        = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
-
-                logModuleCall(
-                    'ProxmoxCloudVps',
-                    __FUNCTION__,
-                    $storage,
-                    'Debug remove Backup Cron',
-                    $this->configuration()
-                );
-
         $fileRepository = new FileRepository();
         $fileRepository->setApi($this->api());
         $fileRepository->findBackup($this->vm())
@@ -195,6 +186,15 @@ class BackupRemove extends Command
         $whmcsParams->setParams($params);
         unset($this->vm, $this->api, $this->configuration);
         $storage        = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
+
+                logModuleCall(
+                    'ProxmoxCloudVps',
+                    __FUNCTION__,
+                    $storage,
+                    'Debug remove Backup Cron',
+                    $params
+                );
+
         $fileRepository = new FileRepository();
         $fileRepository->setApi($this->api());
         $fileRepository->findBackupByVmModel(VmModel::ofHostingId($params['serviceid'])->get())