PadMessageHandler.js: renamed parameter in handleCustomMessage() to avoid name clash

This commit is contained in:
muxator 2019-02-26 22:19:49 +01:00
parent 791012bb9b
commit 4b913172fe

View file

@ -352,14 +352,14 @@ exports.handleCustomObjectMessage = function (msg, sessionID, cb) {
* Handles a custom message (sent via HTTP API request) * Handles a custom message (sent via HTTP API request)
* *
* @param padID {Pad} the pad to which we're sending this message * @param padID {Pad} the pad to which we're sending this message
* @param msg {String} the message we're sending * @param msgString {String} the message we're sending
*/ */
exports.handleCustomMessage = function (padID, msg, cb) { exports.handleCustomMessage = function (padID, msgString, cb) {
var time = new Date().getTime(); var time = new Date().getTime();
var msg = { var msg = {
type: 'COLLABROOM', type: 'COLLABROOM',
data: { data: {
type: msg, type: msgString,
time: time time: time
} }
}; };