summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-06-14 13:12:41 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-06-14 13:12:41 +0200
commitf17be0931634b7b37632e703a9845e3a28cbb698 (patch)
treecf41101bba3d56f12648b8cad1ddac8362bb4aae
parenta89cd6b0bfd53ee7655bfe887f3ebf08067c39aa (diff)
downloadapigrabber-release/2.7.0.tar.gz
apigrabber-release/2.7.0.zip
apply workaround for match_pending notificationsrelease/2.7.0
-rw-r--r--worker.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/worker.js b/worker.js
index 0c67b84..f7cebb3 100644
--- a/worker.js
+++ b/worker.js
@@ -76,7 +76,10 @@ if (LOGGLY_TOKEN)
await ch.sendToQueue(PROCESS_QUEUE,
new Buffer(JSON.stringify(data)), {
persistent: true, type: "match",
- headers: idx == len - 1? { notify: notify } : {}
+ headers: {
+ notify: notify,
+ donotify: idx == len -1 // TODO remove this header, backwards compat for web
+ }
});
// forward "notify" for the last match on the last page
if (notify) await ch.publish("amq.topic", notify,