summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-31 21:08:23 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-31 21:08:23 +0200
commit4709e198d6d3af33b65867cc1196971fa3f83d78 (patch)
tree392c805a948b6c266dd24eac7c3cf2a9f3ae4030
parent6155af70d53765c7867b18834fe252c1209729bc (diff)
downloadshrinker-4709e198d6d3af33b65867cc1196971fa3f83d78.tar.gz
shrinker-4709e198d6d3af33b65867cc1196971fa3f83d78.zip
fix shard_id workaround
-rw-r--r--worker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker.js b/worker.js
index 1ea66bd..0dde0d1 100644
--- a/worker.js
+++ b/worker.js
@@ -75,12 +75,12 @@ var RABBITMQ_URI = process.env.RABBITMQ_URI || "amqp://localhost",
let matches = msgs.filter((m) => m.properties.type == "match").map((m) => JSON.parse(m.content)),
players = msgs.filter((m) => m.properties.type == "player").map((m) => {
let pl = JSON.parse(m.content);
- pl.shard_id = m.properties.headers.shard; // TODO workaround for empty API field
+ pl.attributes.shard_id = m.properties.headers.shard; // TODO workaround for empty API field
return pl;
}),
teams = msgs.filter((m) => m.properties.type == "team").map((m) => {
let t = JSON.parse(m.content);
- t.shard_id = m.properties.headers.shard;
+ t.attributes.shard_id = m.properties.headers.shard;
return t;
});