reset update info after short-circuit

This commit is contained in:
girish@cloudron.io
2016-01-25 16:46:54 -08:00
parent ba6f05b119
commit 4b54e776cc
2 changed files with 21 additions and 5 deletions

View File

@@ -6,7 +6,8 @@ exports = module.exports = {
checkAppUpdates: checkAppUpdates,
checkBoxUpdates: checkBoxUpdates,
getUpdateInfo: getUpdateInfo
getUpdateInfo: getUpdateInfo,
resetUpdateInfo: resetUpdateInfo
};
var apps = require('./apps.js'),
@@ -42,6 +43,11 @@ function getUpdateInfo() {
};
}
function resetUpdateInfo() {
gAppUpdateInfo = { };
gBoxUpdateInfo = null;
}
function getAppUpdates(callback) {
apps.getAll(function (error, apps) {
if (error) return callback(error);