andre 3 månader sedan
förälder
incheckning
98238bf21a

+ 9 - 0
app/Cron/BackupRemove.php

@@ -188,6 +188,15 @@ class BackupRemove extends Command
         $storage        = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
         $fileRepository = new FileRepository();
         $fileRepository->setApi($this->api());
+
+                    logModuleCall(
+                        'ProxmoxCloudVps',
+                        __FUNCTION__,
+                        VmModel::ofHostingId($params['serviceid'])->get(),
+                        'Debug remove Backup Cron',
+                        $params['serviceid']
+                    );
+
         $fileRepository->findBackupByVmModel(VmModel::ofHostingId($params['serviceid'])->get())
                       ->findByStorages([$storage]);
         if($this->configuration()->getBackupStoreDays()){

+ 0 - 9
app/Repositories/AbstractProductConfigurationRepository.php

@@ -199,15 +199,6 @@ abstract class AbstractProductConfigurationRepository
                 $this->entries[$key] = ProductConfiguration::ofProductId($this->productId)
                     ->ofSetting($key)
                     ->value("value");
-                if($key == 'backupStorage'){
-                    logModuleCall(
-                        'ProxmoxCloudVps',
-                        __FUNCTION__,
-                        $this->entries[$key],
-                        'Debug remove Backup Cron',
-                        $this->productId
-                    );
-                }
                 return $this->entries[$key];
             }
         }