Skip to content

Commit 1561cf6

Browse files
Update howtos/how-to-set-an-away-message/server.js
Co-authored-by: Steven Waterman <[email protected]>
1 parent 63a38b4 commit 1561cf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

howtos/how-to-set-an-away-message/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ app.post("/talkjs", async (req, res) => {
7070
timeStampToTime(timestamp)
7171
);
7272

73-
if (role === "customer" && outOfOffice === true) {
73+
if (outOfOffice && role === "customer") {
7474
if (!(conversationId in autoReplied)) {
7575
await sendReply(conversationId);
7676
}

0 commit comments

Comments
 (0)