diff --git a/services/production/common/methods/fake-production/message-send.js b/services/production/common/methods/fake-production/message-send.js index 332f51d08..c1549a875 100644 --- a/services/production/common/methods/fake-production/message-send.js +++ b/services/production/common/methods/fake-production/message-send.js @@ -31,8 +31,8 @@ module.exports = function(FakeProduction) { var messagesInbox = []; elements.forEach(function(e) { var id = uuid.v1(); - var message = {uuid: id, sender: e.username, recipient: e.salesPerson, message: e.message}; - var messageInbox = {uuid: id, sender: e.username, recipient: e.salesPerson, finalRecipient: e.salesPerson, message: e.message}; + var message = {uuid: id, sender: e.sender, recipient: e.salesPerson, message: e.message}; + var messageInbox = {uuid: id, sender: e.sender, recipient: e.salesPerson, finalRecipient: e.salesPerson, message: e.message}; messages.push(message); messagesInbox.push(messageInbox); }, this);