1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00

Re-order deprovisioning sequence to fix platform user removal

This commit is contained in:
Rory Powell 2023-02-21 13:36:14 +00:00
parent e093ab5ef4
commit a84665c199

View file

@ -5,9 +5,9 @@ import { quotas } from "@budibase/pro"
export async function deleteTenant(tenantId: string) {
await quotas.bustCache()
await platform.tenants.removeTenant(tenantId)
await removeGlobalDB(tenantId)
await removeTenantUsers(tenantId)
await removeTenantApps(tenantId)
await removeGlobalDB(tenantId)
}
async function removeGlobalDB(tenantId: string) {