summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-07-26 20:27:23 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-07-26 20:27:23 +0200
commit7c78c7dacd397a35456fc76195fef5d1aadb5f12 (patch)
tree4f3480687206e8a12bcb2712b10098ef03975ac8
parentda57e1b71cb55d968c3f10b81a1ff73fc51b805c (diff)
downloadprocessor-7c78c7dacd397a35456fc76195fef5d1aadb5f12.tar.gz
processor-7c78c7dacd397a35456fc76195fef5d1aadb5f12.zip
forward msg type to failed queue 2/2
-rw-r--r--worker.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/worker.js b/worker.js
index 2feeba6..108f870 100644
--- a/worker.js
+++ b/worker.js
@@ -289,6 +289,7 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => {
await Promise.map(msgs, async (m) => {
await ch.sendToQueue(QUEUE + "_failed", m.content, {
persistent: true,
+ type: msg.properties.type,
headers: m.properties.headers
});
await ch.nack(m, false, false);