fix: Update the relevant agent presence only (#5220)
This commit is contained in:
@@ -159,7 +159,10 @@ export const actions = {
|
||||
const userData = response.data;
|
||||
const { id } = userData;
|
||||
commit(types.SET_CURRENT_USER, response.data);
|
||||
dispatch('agents/updatePresence', { [id]: params.availability });
|
||||
dispatch('agents/updateSingleAgentPresence', {
|
||||
id,
|
||||
availabilityStatus: params.availability,
|
||||
});
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user