Skip to content

Commit

Permalink
Appending entity id if it exists, refs #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Genar Trias Ortiz committed Feb 26, 2018
1 parent b54a2b1 commit db6bac8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/worker/action-creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ module.exports = class ActionCreator {
const executer = new ActionExecuter(action, rabbit, this.event)

const executionPromise = function (lastValue, preLog, eventsLenght) {
preLog = '[' + lastValue.id + '] > ' + preLog
if (lastValue.id) {
preLog = '[' + lastValue.id + '] > ' + preLog
}
debug('Last value received is: ', lastValue)
return new Promise((resolve, reject) => {
logger.info(preLog, 'Running action ', index + 1 , ' of ', eventsLenght)
Expand Down

0 comments on commit db6bac8

Please sign in to comment.