operator: add app update checker route
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user