Sfoglia il codice sorgente

debug limit snapshots

andre 2 anni fa
parent
commit
7efa4ed88a
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      app/UI/Snapshot/Providers/SnapshotProvider.php

+ 1 - 2
app/UI/Snapshot/Providers/SnapshotProvider.php

@@ -51,12 +51,11 @@ class SnapshotProvider extends BaseDataProvider implements ClientArea
         $testRepo = new SnapshotRepository();
         $testRepo->setApi($this->api());
         $testRepo->findByVm($vm);
-        $testRepo->ignoreCurrent(true);
 
         logModuleCall(
             'ProxmoxCloudVps',
             __FUNCTION__,
-            $testRepo,
+            $this->getWhmcsConfigOption(ConfigurableOption::SNAPSHOTS, $this->configuration()->getSnapshotMaxFiles()),
             'Debug',
             $testRepo->count()
         );