From a55972841264784171540ef2f5df89fd64b09919 Mon Sep 17 00:00:00 2001 From: Ravi Chandra Sekhar Sarika Date: Tue, 12 Nov 2024 15:59:25 +0530 Subject: [PATCH] fix: corected api signature --- docs/samples/contact-center/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/samples/contact-center/app.js b/docs/samples/contact-center/app.js index 056b1aae6cb..23d53775ef1 100644 --- a/docs/samples/contact-center/app.js +++ b/docs/samples/contact-center/app.js @@ -198,7 +198,7 @@ async function handleAgentStatus(event) { function setAgentStatus() { let state = "Available"; if(agentStatus !== 'Available') state = 'Idle'; - webex.cc.setAgentStatus({state: state, auxCodeId: auxCodeId, lastStateChangeReason: agentStatus, agentId: agentId}).then((response) => { + webex.cc.setAgentState({state: state, auxCodeIdArray: auxCodeId, lastStateChangeReason: agentStatus, agentId: agentId}).then((response) => { console.log('Agent status set successfully', response); }).catch(error => { console.error('Agent status set failed', error);