get correct user sender
This commit is contained in:
parent
6365a06cbb
commit
37c1c654b7
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue