diff --git a/src/apps.js b/src/apps.js index 81b78280a..25850377d 100644 --- a/src/apps.js +++ b/src/apps.js @@ -1942,7 +1942,7 @@ function restoreInstalledApps(callback) { apps = apps.filter(app => app.installationState !== exports.ISTATE_PENDING_RESTORE); // safeguard against tasks being created non-stop if we crash on startup async.eachSeries(apps, function (app, iteratorDone) { - backups.getByAppIdPaged(1, 1, app.id, function (error, results) { + backups.getByIdentifierAndStatePaged(app.id, backups.BACKUP_STATE_NORMAL, 1, 1, function (error, results) { let installationState, restoreConfig, oldManifest; if (!error && results.length) { installationState = exports.ISTATE_PENDING_RESTORE;