Skip to content

Commit 2b180f2

Browse files
author
Arkady Smirnov
committed
fix typo
1 parent ee84f57 commit 2b180f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

serverless/functions/endChat.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ exports.handler = async function (context, event, callback) {
7070
// improperly implemented/configured if it happens after enqueuing. Because
7171
// of this, we must allow for this state without error but we'll print a
7272
// warning message to help with troubleshooting.
73-
if (channelAttributes.taskSid) {
73+
if (!channelAttributes.taskSid) {
7474
console.warn("No task sid on chat channel attribtues – this may be fine, but if things aren't working correctly, check your populateChatChannelWithTaskSid function.")
75+
76+
} else {
7577
// Now let's pull the Task
7678
let task = await client
7779
.taskrouter

0 commit comments

Comments
 (0)