fix: In IAM on deleting user, user actions were getting disabled (#3675)

fix #3671 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Improved the user deletion process to be more reliable by making it
asynchronous.
- Ensured that organization members are updated immediately after a user
is deleted.
  - Added a new function to update user actions post-deletion.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Omkar Kesarkhane
2024-06-05 13:33:59 +05:30
committed by GitHub
parent 43e5d4e647
commit 26ab4e6674
+4 -3
View File
@@ -625,16 +625,17 @@ export default defineComponent({
deleteUserEmail = props.row.email;
};
const deleteUser = () => {
const deleteUser = async () => {
usersService
.delete(store.state.selectedOrganization.identifier, deleteUserEmail)
.then((res: any) => {
.then(async (res: any) => {
if (res.data.code == 200) {
$q.notify({
color: "positive",
message: "User deleted successfully.",
});
getOrgMembers();
await getOrgMembers();
updateUserActions();
}
})
.catch((err: any) => {