diff --git a/CHANGES b/CHANGES index 7fc4718f0..2f3cdf654 100644 --- a/CHANGES +++ b/CHANGES @@ -593,4 +593,5 @@ - Fix migration interface issue - Allow self hosted Cloudron to login to the Cloudron Store - Send mail to self hosted Cloudron admins about OOM and App died errors +- Fix bug where box update emails are sent repeatedly diff --git a/src/updatechecker.js b/src/updatechecker.js index cff9906ba..760c14624 100644 --- a/src/updatechecker.js +++ b/src/updatechecker.js @@ -116,7 +116,7 @@ function checkAppUpdates(callback) { gAppUpdateInfo = { }; var oldState = loadState(); - var newState = { box: oldState.box }; // create new state so that old app ids are removed + var newState = { }; // create new state so that old app ids are removed apps.getAll(function (error, apps) { if (error) return callback(error); @@ -153,6 +153,7 @@ function checkAppUpdates(callback) { iteratorDone(); }); }, function () { + newState.box = loadState().box; // preserve the latest box state information saveState(newState); callback(); });