summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-25 13:02:14 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-25 13:02:14 +0200
commitba8c9ce4bf2e23336c7bb8539c4fdb92f943e614 (patch)
treee9bb371f3b2c08f7ba07fde9214a3ac852be4b5e /worker.js
parent94f025db5247bb7b88c64c1f8d3c2e7d0134033d (diff)
downloadcruncher-ba8c9ce4bf2e23336c7bb8539c4fdb92f943e614.tar.gz
cruncher-ba8c9ce4bf2e23336c7bb8539c4fdb92f943e614.zip
fix global crunches
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js2
1 files changed, 1 insertions, 1 deletions
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);