get correct user sender

This commit is contained in:
nelo 2017-06-29 14:15:23 +02:00
parent 6365a06cbb
commit 37c1c654b7
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ module.exports = function(FakeProduction) {
var messagesInbox = []; var messagesInbox = [];
elements.forEach(function(e) { elements.forEach(function(e) {
var id = uuid.v1(); var id = uuid.v1();
var message = {uuid: id, sender: e.username, recipient: e.salesPerson, message: e.message}; var message = {uuid: id, sender: e.sender, recipient: e.salesPerson, message: e.message};
var messageInbox = {uuid: id, sender: e.username, recipient: e.salesPerson, finalRecipient: e.salesPerson, message: e.message}; var messageInbox = {uuid: id, sender: e.sender, recipient: e.salesPerson, finalRecipient: e.salesPerson, message: e.message};
messages.push(message); messages.push(message);
messagesInbox.push(messageInbox); messagesInbox.push(messageInbox);
}, this); }, this);