From 78a114a0702207d8bfd5412bf59dea67df63c006 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 26 Jul 2017 20:34:27 +0200 Subject: add hotfix for web not listening to match_dupe --- worker.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'worker.js') diff --git a/worker.js b/worker.js index 108f870..7af0e98 100644 --- a/worker.js +++ b/worker.js @@ -172,11 +172,15 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => { if (msg.properties.headers.notify) { await ch.publish("amq.topic", msg.properties.headers.notify, - new Buffer("matches_dupe")) + new Buffer("matches_dupe")); // send match_dupe to web player.ign.api_id await ch.publish("amq.topic", msg.properties.headers.notify + "." + match.id, - new Buffer("match_dupe")) + new Buffer("match_dupe")); + // HOTFIX TODO remove me, web should listen to match_dupe + await ch.publish("amq.topic", + msg.properties.headers.notify, + new Buffer("match_update")); } await ch.nack(msg, false, false); } else if (match.rosters.length < 2 || match.rosters[0].id == "null") { -- cgit v1.3.1