diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-14 13:12:41 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-14 13:12:41 +0200 |
| commit | f17be0931634b7b37632e703a9845e3a28cbb698 (patch) | |
| tree | cf41101bba3d56f12648b8cad1ddac8362bb4aae | |
| parent | a89cd6b0bfd53ee7655bfe887f3ebf08067c39aa (diff) | |
| download | apigrabber-f17be0931634b7b37632e703a9845e3a28cbb698.tar.gz apigrabber-f17be0931634b7b37632e703a9845e3a28cbb698.zip | |
apply workaround for match_pending notificationsrelease/2.7.0
| -rw-r--r-- | worker.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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, |
