merge updatechecker into updater
This commit is contained in:
@@ -42,8 +42,7 @@ const appHealthMonitor = require('./apphealthmonitor.js'),
|
||||
safe = require('safetydance'),
|
||||
scheduler = require('./scheduler.js'),
|
||||
system = require('./system.js'),
|
||||
updater = require('./updater.js'),
|
||||
updateChecker = require('./updatechecker.js');
|
||||
updater = require('./updater.js');
|
||||
|
||||
const gJobs = {
|
||||
autoUpdater: null,
|
||||
@@ -130,7 +129,7 @@ async function startJobs() {
|
||||
// this is run separately from the update itself so that the user can disable automatic updates but can still get a notification
|
||||
gJobs.updateCheckerJob = CronJob.from({
|
||||
cronTime: `00 ${minute} 1,5,9,13,17,21,23 * * *`,
|
||||
onTick: async () => await safe(updateChecker.checkForUpdates({ stableOnly: true }), { debug }),
|
||||
onTick: async () => await safe(updater.checkForUpdates({ stableOnly: true }), { debug }),
|
||||
start: true
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user