notification: app updated message shown despite failure

This commit is contained in:
Girish Ramakrishnan
2021-07-13 13:29:42 -07:00
parent 0947125a03
commit db685d3a56
3 changed files with 7 additions and 5 deletions
+2
View File
@@ -267,6 +267,8 @@ async function onEvent(id, action, source, data) {
return await oomEvent(id, data.app, data.addon, data.containerId, data.event);
case eventlog.ACTION_APP_UPDATE_FINISH:
if (source.username !== auditSource.CRON.username) return; // updated by user
if (data.errorMessage) return; // the update indicator will still appear, so no need to notify user
return await appUpdated(id, data.app);
case eventlog.ACTION_CERTIFICATE_RENEWAL: