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:
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));
|
||||
|
||||
Reference in new issue
Block a user