mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 00:09:22 +00:00
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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user