Merge pull request #4617 from Budibase/fix/app-migrations

Fix app list retrieval in migrations
This commit is contained in:
Rory Powell 2022-02-22 08:05:24 +00:00 committed by GitHub
commit a5d0a4e2d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(