Skip to content

Commit

Permalink
fix(message): return message on queue pull mode transport
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Feb 29, 2020
1 parent f54194f commit 2b671d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/message.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ MessageSchema.methods.queue = function queue(done) {
//for actul send
else if (message.mode === SEND_MODE_PULL) {
worker.queue.emit('job queued', message);
return;
return cb(null, message);
}

//queue message for later send
Expand Down

0 comments on commit 2b671d7

Please sign in to comment.