mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 11:37:58 +00:00
feat: Set up store for teams (#1689)
This commit is contained in:
committed by
GitHub
parent
cadb246eaa
commit
941d4219f0
@@ -11,5 +11,6 @@ describe('#TeamsAPI', () => {
|
||||
expect(teams).toHaveProperty('delete');
|
||||
expect(teams).toHaveProperty('getAgents');
|
||||
expect(teams).toHaveProperty('addAgents');
|
||||
expect(teams).toHaveProperty('updateAgents');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -15,6 +15,12 @@ export class TeamsAPI extends ApiClient {
|
||||
user_ids: agentsList,
|
||||
});
|
||||
}
|
||||
|
||||
updateAgents({ teamId, agentsList }) {
|
||||
return axios.patch(`${this.url}/${teamId}/team_members`, {
|
||||
user_ids: agentsList,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default new TeamsAPI();
|
||||
|
||||
Reference in New Issue
Block a user