From e3829eb24b5b389cc46cf7d6f199414f518b6a60 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 14 Jun 2020 14:00:29 -0700 Subject: [PATCH] typo --- src/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;