0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: normalize Logto DB region role names for DB alteration CI (#6144)

This commit is contained in:
Darcy Ye 2024-07-01 15:51:41 +08:00 committed by GitHub
parent 87615d58ce
commit f6e10f81bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -104,6 +104,11 @@ const queryDatabaseManifest = async (database) => {
return { ...rest, grantee: 'logto_tenant' };
}
// Removes the last segment of region grantee since Logto will use 'logto_region_xxx' for the role name for different regions.
if (grantee.startsWith('logto_region_')) {
return { ...rest, grantee: 'logto_region' };
}
return { grantee, ...rest };
};