From 670d4df1194412e2e5c85aa4d955aa5dd6b975cf Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 21 Aug 2017 19:49:42 +0200 Subject: remove match_update hotfix, send match_invalid --- worker.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'worker.js') diff --git a/worker.js b/worker.js index 764e1d8..4bf1cdc 100644 --- a/worker.js +++ b/worker.js @@ -185,14 +185,13 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => { await ch.publish("amq.topic", msg.properties.headers.notify + "." + match.id, 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") { logger.info("invalid match", match.id); + await ch.publish("amq.topic", + msg.properties.headers.notify + "." + match.id, + new Buffer("match_invalid")); // it is really `"null"`. // reject invalid matches (handling API bugs) await ch.nack(msg, false, false); -- cgit v1.3.1