Respect custom tenantIds in run migrations endpoint
This commit is contained in:
parent
8977e8a027
commit
d673d27563
|
@ -95,6 +95,8 @@ exports.runMigrations = async (CouchDB, migrations, options = {}) => {
|
|||
if (!options.tenantIds || !options.tenantIds.length) {
|
||||
// run for all tenants
|
||||
tenantIds = await getTenantIds()
|
||||
} else {
|
||||
tenantIds = options.tenantIds
|
||||
}
|
||||
} else {
|
||||
// single tenancy
|
||||
|
|
Loading…
Reference in New Issue