summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-01 17:41:58 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-01 17:41:58 +0200
commit8e3f0661d524c355748377e56150a827f59f543c (patch)
tree0bc52bf21f2bab9213b8818f4730663f2c7348a8
parent7ffc2723ea723e6115bf638b389db7c0ada141eb (diff)
downloadapigrabber-8e3f0661d524c355748377e56150a827f59f543c.tar.gz
apigrabber-8e3f0661d524c355748377e56150a827f59f543c.zip
drop teams
-rw-r--r--worker.js4
1 files changed, 2 insertions, 2 deletions
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,