diff --git a/CHANGELOG.md b/CHANGELOG.md index 3232c3b08..0fff352ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -78,6 +78,8 @@ [#427](https://github.com/nextcloud/cookbook/pull/427) @christianlupus - Clear filtered keywords when changing the route, fixes #425 [#426](https://github.com/nextcloud/cookbook/pull/426/) @seyfeb +- Removed typo introduced during refactory cycles + [#434](https://github.com/nextcloud/cookbook/pull/434) @christianlupus ### Removed - Travis build system diff --git a/lib/Service/DbCacheService.php b/lib/Service/DbCacheService.php index fe85dbacf..354872e27 100644 --- a/lib/Service/DbCacheService.php +++ b/lib/Service/DbCacheService.php @@ -305,14 +305,14 @@ private function updateKeywords() { * Gets the last time the search index was updated */ public function getSearchIndexLastUpdateTime() { - return (int) $this->config->getUserValue($this->user_id, 'cookbook', 'last_index_update'); + return (int) $this->config->getUserValue($this->userId, 'cookbook', 'last_index_update'); } /** * @return int */ public function getSearchIndexUpdateInterval(): int { - $interval = (int)$this->config->getUserValue($this->user_id, 'cookbook', 'update_interval'); + $interval = (int)$this->config->getUserValue($this->userId, 'cookbook', 'update_interval'); if ($interval < 1) { $interval = 5; @@ -338,7 +338,7 @@ private function checkSearchIndexUpdate() { $this->updateCache(); // Cache the last index update - $this->config->setUserValue($this->user_id, 'cookbook', 'last_index_update', time()); + $this->config->setUserValue($this->userId, 'cookbook', 'last_index_update', time()); // TODO Make triggers more general, need refactoring of *all* Services $this->recipeService->updateSearchIndex();