diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-31 21:08:23 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-31 21:08:23 +0200 |
| commit | 4709e198d6d3af33b65867cc1196971fa3f83d78 (patch) | |
| tree | 392c805a948b6c266dd24eac7c3cf2a9f3ae4030 | |
| parent | 6155af70d53765c7867b18834fe252c1209729bc (diff) | |
| download | processor-4709e198d6d3af33b65867cc1196971fa3f83d78.tar.gz processor-4709e198d6d3af33b65867cc1196971fa3f83d78.zip | |
fix shard_id workaround
| -rw-r--r-- | worker.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; }); |
