Reset app update indicator when an update was triggered

Fixes #48
This commit is contained in:
Johannes
2016-11-07 15:14:06 +01:00
parent 5e0ed1dff3
commit 4fd5b369f8
2 changed files with 16 additions and 2 deletions
+4
View File
@@ -69,6 +69,7 @@ var addons = require('./addons.js'),
split = require('split'),
superagent = require('superagent'),
taskmanager = require('./taskmanager.js'),
updateChecker = require('./updatechecker.js'),
url = require('url'),
util = require('util'),
uuid = require('node-uuid'),
@@ -683,6 +684,9 @@ function update(appId, data, auditSource, callback) {
eventlog.add(eventlog.ACTION_APP_UPDATE, auditSource, { appId: appId, toManifest: manifest, fromManifest: app.manifest, force: data.force });
// clear update indicator, if update fails, it will come back through the update checker
updateChecker.resetAppUpdateInfo(appId);
callback(null);
});
});