operator: add app update checker route

This commit is contained in:
Girish Ramakrishnan
2021-09-21 19:53:05 -07:00
parent 82d4fdf24e
commit 0857378801
3 changed files with 18 additions and 3 deletions

View File

@@ -35,8 +35,8 @@ async function checkAppUpdates(options) {
debug('checkAppUpdates: checking for updates');
let state = getUpdateInfo();
let newState = { }; // create new state so that old app ids are removed
const state = getUpdateInfo();
const newState = { }; // create new state so that old app ids are removed
const result = await apps.list();
@@ -64,7 +64,7 @@ async function checkBoxUpdates(options) {
const updateInfo = await appstore.getBoxUpdate(options);
let state = getUpdateInfo();
const state = getUpdateInfo();
if (!updateInfo) { // no update
if ('box' in state) {