chore: Add Assignable Agents API (#4722)

This commit is contained in:
Pranav Raj S
2022-05-23 19:24:07 +05:30
committed by GitHub
parent 79280ae372
commit 56cd9bc0b8
10 changed files with 134 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
import Vue from 'vue';
import InboxesAPI from 'dashboard/api/inboxes.js';
import AssignableAgentsAPI from '../../api/assignableAgents';
const state = {
records: {},
@@ -31,7 +31,7 @@ export const actions = {
try {
const {
data: { payload },
} = await InboxesAPI.getAssignableAgents(inboxId);
} = await AssignableAgentsAPI.get([inboxId]);
commit(types.SET_INBOX_ASSIGNABLE_AGENTS, { inboxId, members: payload });
} catch (error) {
throw new Error(error);