Skip to content

Commit

Permalink
patch: set check updates every 1 hour (#1295)
Browse files Browse the repository at this point in the history
* clean

* Change check updates interval to 1 hour
  • Loading branch information
andyoknen authored Sep 11, 2024
1 parent c80e1d7 commit 4498177
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions proxy16/kit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1189,22 +1189,13 @@ const kit = {
return Promise.resolve(r)
})
},
// TODO (brangr): проверить
update: function (message) {
return kit.proxy().then(proxy => {
return proxy.nodeControl.kit.update()
}).then(r => {
return Promise.resolve(r)
})
},
// TODO (brangr): почему коммент?
/*checkupdate : function(message){
return kit.proxy().then(proxy => {
return proxy.nodeControl.kit.checkupdate().then(update => {
send(message.id, null, update)
})
})
},*/
request: function (message) {

return kit.proxy().then(proxy => {
Expand Down
2 changes: 1 addition & 1 deletion tpls/main.js.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function initApp() {
setInterval(() => {
autoUpdater.checkForUpdates();
}, 10 * 60 * 1000);
}, 60 * 60 * 1000); // Every 1 hour
}

powerMonitor.on('suspend', () => {
Expand Down

0 comments on commit 4498177

Please sign in to comment.