abreits / amqp-ts

AmqpSimple, a RabbitMQ tested Amqp library written in and for Typescript
MIT License
131 stars 42 forks source link

Fix copy/paste bug in deprecated startConsumer() function #42

Closed austin-beer closed 4 years ago

austin-beer commented 4 years ago

If a message is received with the replyTo field set and the onMessage function passed to startConsumer returns a promise, the value returned by the promise won't be included in the reply message. Instead a JSON version of the entire promise will be included instead. This fixes that.