Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion lib/MessageFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class MessageFactory {
* @chainable
*/
setUserId (userId) {
this.user_id = userId;
this.user_id = userId.toString();
return this;
}
/**
Expand Down
2 changes: 1 addition & 1 deletion lib/MessageSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class MessageSet extends MessageFactory {
* @chainable
*/
setUserId (userId) {
this.user_id = userId;
this.user_id = userId.toString();
return this;
}
/**
Expand Down
4 changes: 2 additions & 2 deletions lib/MessageSink.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,12 @@ class MessageSink {
* @chainable
*/
setUserId (userId) {
this.user_id = userId;
this.user_id = userId.toString();
return this;
}
/**
* Sets the instance response_time field to the given number
* @function setUserId
* @function setResponseTime
* @param {Number} responseTime - the response time of the agent to the user
* message.
* @chainable
Expand Down