Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion serverless/functions/endChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ exports.handler = async function (context, event, callback) {
// improperly implemented/configured if it happens after enqueuing. Because
// of this, we must allow for this state without error but we'll print a
// warning message to help with troubleshooting.
if (channelAttributes.taskSid) {
if (!channelAttributes.taskSid) {
console.warn("No task sid on chat channel attribtues – this may be fine, but if things aren't working correctly, check your populateChatChannelWithTaskSid function.")

} else {
// Now let's pull the Task
let task = await client
.taskrouter
Expand Down