diff --git a/functions/transferChatStart.ts b/functions/transferChatStart.ts index 9e9038ed..45aafdb6 100644 --- a/functions/transferChatStart.ts +++ b/functions/transferChatStart.ts @@ -270,12 +270,13 @@ export const handler = TokenValidator( `Transferring conversations task ${taskSid} to worker ${targetSid} by creating interaction invite.`, ); // Get task queue + /* const taskQueues = await client.taskrouter .workspaces(context.TWILIO_WORKSPACE_SID) .taskQueues.list({ workerSid: targetSid }); const taskQueueSid = taskQueues[0].sid; - + */ // Create invite to target worker const invite = await client.flexApi.v1.interaction .get(flexInteractionSid) @@ -283,7 +284,7 @@ export const handler = TokenValidator( .invites.create({ routing: { properties: { - queue_sid: taskQueueSid, + // queue_sid: taskQueueSid, worker_sid: targetSid, workflow_sid: context.TWILIO_CHAT_TRANSFER_WORKFLOW_SID, workspace_sid: context.TWILIO_WORKSPACE_SID,