From ba8c9ce4bf2e23336c7bb8539c4fdb92f943e614 Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 25 Apr 2017 13:02:14 +0200 Subject: fix global crunches --- worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'worker.js') diff --git a/worker.js b/worker.js index c367111..8ab445a 100644 --- a/worker.js +++ b/worker.js @@ -82,7 +82,7 @@ if (LOGGLY_TOKEN) await ch.prefetch(BATCHSIZE); ch.consume("crunch", (msg) => { const api_id = msg.content.toString(); - if (msg.type == "global") + if (msg.properties.type == "global") participants.add(api_id); // else exclusively add data to player, used for player refresh participants_player.add(api_id); -- cgit v1.3.1