fix: Organizations Admin improvements (#13656)

* Admin improvements

* chore: improve spacing

---------

Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-02-14 10:34:45 -03:00
1 parent bb48ccbad9
commit bafa3c97ac
5 files changed
+38 -16

No files matched your search

@@ -40,7 +40,11 @@ export const adminDeleteHandler = async ({ input }: AdminDeleteOption) => {
});
if (foundOrg.slug) {
await deleteDomain(foundOrg.slug);
try {
await deleteDomain(foundOrg.slug);
} catch (e) {
log.error(`Failed to delete domain ${foundOrg.slug}. Do a manual deletion if needed`);
}
}
await renameUsersToAvoidUsernameConflicts(foundOrg.members.map((member) => member.user));