Skip to content

Commit

Permalink
ch: implement feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
acedeywin committed Jul 7, 2023
1 parent 90e6f69 commit abd5614
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions functions/taskrouterListeners/transfersListener.private.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const updateWarmVoiceTransferAttributes = async (
taskAttributes: { transferMeta: { originalReservation: string } },
taskSid: string,
) => {
console.log(`Handling warm voice transfer ${transferStatus}...`);
console.info(`Handling warm voice transfer ${transferStatus} with taskSid ${taskSid}...`);

const client = context.getTwilioClient();

Expand All @@ -157,7 +157,7 @@ const updateWarmVoiceTransferAttributes = async (
.tasks(taskSid)
.update({ attributes: JSON.stringify(updatedAttributes) });

console.log(`Finished handling warm voice transfer ${transferStatus}.`);
console.info(`Finished handling warm voice transfer ${transferStatus} with taskSid ${taskSid}.`);
};

/**
Expand All @@ -179,8 +179,6 @@ export const handleEvent = async (context: Context<EnvVars>, event: EventFields)

const taskAttributes = JSON.parse(taskAttributesString);

console.log(isWarmVoiceTransferTimedOut(eventType, taskChannelUniqueName, taskAttributes));

/**
* If a chat transfer gets accepted, it should:
* 1) Complete the original task
Expand Down

0 comments on commit abd5614

Please sign in to comment.