diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 2 | ||||
-rw-r--r-- | src/stores/RecipesStore.js | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 8435c9ab8..7dbef985d 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -80,7 +80,7 @@ export default class AppStore extends Store { | |||
80 | // Check for updates once every 4 hours | 80 | // Check for updates once every 4 hours |
81 | setInterval(() => this._checkForUpdates(), CHECK_INTERVAL); | 81 | setInterval(() => this._checkForUpdates(), CHECK_INTERVAL); |
82 | // Check for an update in 30s (need a delay to prevent Squirrel Installer lock file issues) | 82 | // Check for an update in 30s (need a delay to prevent Squirrel Installer lock file issues) |
83 | setTimeout(() => this._checkForUpdates(), 3000); | 83 | setTimeout(() => this._checkForUpdates(), 30000); |
84 | ipcRenderer.on('autoUpdate', (event, data) => { | 84 | ipcRenderer.on('autoUpdate', (event, data) => { |
85 | if (data.available) { | 85 | if (data.available) { |
86 | this.updateStatus = this.updateStatusTypes.AVAILABLE; | 86 | this.updateStatus = this.updateStatusTypes.AVAILABLE; |
diff --git a/src/stores/RecipesStore.js b/src/stores/RecipesStore.js index cdc274685..67fee1d50 100644 --- a/src/stores/RecipesStore.js +++ b/src/stores/RecipesStore.js | |||
@@ -65,6 +65,10 @@ export default class RecipesStore extends Store { | |||
65 | @action async _update() { | 65 | @action async _update() { |
66 | const recipeIds = this.recipeIdForServices; | 66 | const recipeIds = this.recipeIdForServices; |
67 | const recipes = {}; | 67 | const recipes = {}; |
68 | |||
69 | // Hackfix, reference this.all to fetch services | ||
70 | console.debug(`Check Recipe updates for ${this.all.map(recipe => recipe.id)}`); | ||
71 | |||
68 | recipeIds.forEach((r) => { | 72 | recipeIds.forEach((r) => { |
69 | const recipe = this.one(r); | 73 | const recipe = this.one(r); |
70 | recipes[r] = recipe.version; | 74 | recipes[r] = recipe.version; |