Fix UpdateInteval not being saved to config

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
This commit is contained in:
Benjamin Brahmer 2020-09-02 08:23:59 +02:00
parent 250ad619b7
commit 9bb6bf691c
4 changed files with 7 additions and 5 deletions

View File

@ -85,7 +85,7 @@
feedFetcherTimeoutInput.val(data.feedFetcherTimeout);
useCronUpdatesInput.prop('checked', data.useCronUpdates);
exploreUrlInput.val(data.exploreUrl);
updateInterval.val(data.updateInterval);
updateIntervalInput.val(data.updateInterval);
});
};

View File

@ -196,8 +196,10 @@ class Config
$this->exploreUrl . "\n" .
'feedFetcherTimeout = ' .
$this->feedFetcherTimeout . "\n" .
'updateInterval = ' .
$this->updateInterval . "\n" .
'useCronUpdates = ' .
var_export($this->useCronUpdates, true);
var_export($this->useCronUpdates, true);
;
$this->fileSystem->get($configPath)->putContent($ini);

View File

@ -110,7 +110,7 @@ class AdminController extends Controller
$this->config->setFeedFetcherTimeout($feedFetcherTimeout);
$this->config->setUseCronUpdates($useCronUpdates);
$this->config->setExploreUrl($exploreUrl);
$this->config->setupdateInterval($updateInterval);
$this->config->setUpdateInterval($updateInterval);
$this->config->write($this->configPath);
return [
@ -122,7 +122,7 @@ class AdminController extends Controller
'feedFetcherTimeout' => $this->config->getFeedFetcherTimeout(),
'useCronUpdates' => $this->config->getUseCronUpdates(),
'exploreUrl' => $this->config->getExploreUrl(),
'updateInterval' => $this->config->getupdateInterval(),
'updateInterval' => $this->config->getUpdateInterval(),
];
}
}

View File

@ -42,7 +42,7 @@ class Updater extends TimedJob
$this->status = $status;
$this->updaterService = $updaterService;
parent::setInterval($this->config->getupdateInterval());
parent::setInterval($this->config->getUpdateInterval());
}
protected function run($argument)