merge updatechecker into updater

This commit is contained in:
Girish Ramakrishnan
2025-06-26 13:41:09 +02:00
parent a085e9ed54
commit abd640d36b
8 changed files with 292 additions and 314 deletions

View File

@@ -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
});