Fix app list retrieval in migrations
This commit is contained in:
parent
f7d7f1693f
commit
53c0e37f83
|
@ -36,7 +36,7 @@ const runMigration = async (CouchDB, migration, options = {}) => {
|
||||||
if (migrationType === exports.MIGRATION_TYPES.GLOBAL) {
|
if (migrationType === exports.MIGRATION_TYPES.GLOBAL) {
|
||||||
dbNames = [getGlobalDBName()]
|
dbNames = [getGlobalDBName()]
|
||||||
} else if (migrationType === exports.MIGRATION_TYPES.APP) {
|
} else if (migrationType === exports.MIGRATION_TYPES.APP) {
|
||||||
const apps = await getAllApps(CouchDB, migration.opts)
|
const apps = await getAllApps(migration.opts)
|
||||||
dbNames = apps.map(app => app.appId)
|
dbNames = apps.map(app => app.appId)
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|
Loading…
Reference in New Issue