Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/Service/DbCacheService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down