post orbit message on listen to callback

This commit is contained in:
Iuri Matias 2017-01-07 00:10:29 -05:00
parent 5a71342dcd
commit 61ae426781
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ EmbarkJS.Messages.Orbit.listenTo = function(options) {
this.orbit.events.on('message', (topics, message) => { this.orbit.events.on('message', (topics, message) => {
// Get the actual content of the message // Get the actual content of the message
self.orbit.getPost(message.payload.value, true).then((post) => { self.orbit.getPost(message.payload.value, true).then((post) => {
promise.cb(post); promise.cb(post.content);
}); });
}); });