diff --git a/src/metrics.js b/src/metrics.js index b4cb8602a..13c920e8d 100644 --- a/src/metrics.js +++ b/src/metrics.js @@ -305,7 +305,7 @@ async function getSystemStream(options) { intervalId = setInterval(async () => { const [memoryResult, cpuResult] = await Promise.allSettled([ readMemoryMetrics(), readCpuMetrics() ]); // never throws - if (memoryResult.status !== 'fulfilled' || cpuMetrics.status !== 'fulfilled') return metricsStream.destroy(memoryResult.reason || cpuMetrics.reason); + if (memoryResult.status !== 'fulfilled' || cpuResult.status !== 'fulfilled') return metricsStream.destroy(memoryResult.reason || cpuResult.reason); const memoryMetrics = memoryResult.value; const cpuMetrics = cpuResult.value; diff --git a/src/updater.js b/src/updater.js index 88184f919..26b199221 100644 --- a/src/updater.js +++ b/src/updater.js @@ -350,7 +350,7 @@ async function checkForUpdates(options) { // check app updates const result = await apps.list(); for (const app of result) { - await safe(checkAppUpdate(app), { debug }); + await safe(checkAppUpdate(app, options), { debug }); } // raise notifications here because the updatechecker runs regardless of auto-updater cron job