Skip to content

Commit

Permalink
Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhand committed Nov 5, 2024
1 parent 21ab774 commit db1d3a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/transferChatStart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ export const handler = TokenValidator(
taskQueues.find((tq) => tq.friendlyName === DIRECT_TRANSFER_QUEUE_FRIENDLY_NAME) ||
taskQueues[0].sid;

console.info(
`Transferring conversations task ${taskSid} to worker ${targetSid} via queue ${taskQueueSid} and workflow ${context.TWILIO_CHAT_TRANSFER_WORKFLOW_SID} by creating interaction invite.`,
);
// Create invite to target worker
const invite = await client.flexApi.v1.interaction
.get(flexInteractionSid)
Expand Down

0 comments on commit db1d3a6

Please sign in to comment.