1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00

Respect custom tenantIds in run migrations endpoint

This commit is contained in:
Rory Powell 2022-02-21 15:27:51 +00:00
parent bcf64c91ff
commit ed9c6c4ec8

View file

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