pull/2391/head
Rodrigo Nascimento 10 years ago
parent 576e6df985
commit 5f2d4a76ee
  1. 3
      packages/rocketchat-integrations/server/processWebhookMessage.js

@ -60,7 +60,6 @@ this.processWebhookMessage = function(messageObj, user, defaultValues) {
Meteor.runAsUser(user._id, function() { Meteor.runAsUser(user._id, function() {
Meteor.call('createDirectMessage', roomUser.username); Meteor.call('createDirectMessage', roomUser.username);
room = RocketChat.models.Rooms.findOne(rid); room = RocketChat.models.Rooms.findOne(rid);
return room;
}); });
} }
break; break;
@ -69,7 +68,7 @@ this.processWebhookMessage = function(messageObj, user, defaultValues) {
} }
if (messageObj.attachments && !_.isArray(messageObj.attachments)) { if (messageObj.attachments && !_.isArray(messageObj.attachments)) {
console.log('Attachments should be Array, ingnoring value'.red, messageObj.attachments); console.log('Attachments should be Array, ignoring value'.red, messageObj.attachments);
messageObj.attachments = undefined; messageObj.attachments = undefined;
} }

Loading…
Cancel
Save