1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

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 7fae4aae44

View file

@ -36,7 +36,7 @@ const runMigration = async (CouchDB, migration, options = {}) => {
if (migrationType === exports.MIGRATION_TYPES.GLOBAL) {
dbNames = [getGlobalDBName()]
} 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)
} else {
throw new Error(