From 8e3f0661d524c355748377e56150a827f59f543c Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 1 Apr 2017 17:41:58 +0200 Subject: drop teams --- worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'worker.js') diff --git a/worker.js b/worker.js index f29deca..ab659be 100644 --- a/worker.js +++ b/worker.js @@ -51,10 +51,10 @@ if (MADGLORY_TOKEN == undefined) throw "Need an API token"; } }) )); - // send players and teams, they are duplicated in the above structure + // send players they are duplicated in the above structure // and will be inserted seperately await Promise.all(data.included - .filter((o) => o.type == "player" || o.type == "team") + .filter((o) => o.type == "player") .map(async (o) => await ch.sendToQueue("process", new Buffer(JSON.stringify(o)), { persistent: true, -- cgit v1.3.1