This commit is contained in:
Girish Ramakrishnan
2021-03-10 15:32:46 -08:00
parent da00bce4b7
commit 4aae663b2e
+2 -2
View File
@@ -769,10 +769,10 @@ function exportDatabase(addon, callback) {
return callback(null);
}
appdb.getAll(function (error, apps) {
appdb.getAll(function (error, allApps) {
if (error) return callback(error);
async.eachSeries(apps, function iterator (app, iteratorCallback) {
async.eachSeries(allApps, function iterator (app, iteratorCallback) {
if (!app.manifest.addons || !(addon in app.manifest.addons)) return iteratorCallback(); // app doesn't use the addon
debug(`exportDatabase: Exporting addon ${addon} of app ${app.id}`);