Merge pull request #9765 from Budibase/deprovision-fix

Re-order deprovisioning sequence to fix platform user removal
This commit is contained in:
Rory Powell 2023-02-21 14:32:36 +00:00 committed by GitHub
commit 162f8c2af4
1 changed files with 1 additions and 1 deletions

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) {