diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-03 16:32:46 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-03 16:32:46 +0200 |
| commit | bcd212f977121c1612145ab18771f49098e0bf93 (patch) | |
| tree | 74a96d598df7c47b0dbef4c7be9fba1bfd8b7f32 | |
| parent | 98ce52de77c315ae1580872d01ecbd98fba9749a (diff) | |
| download | shrinker-bcd212f977121c1612145ab18771f49098e0bf93.tar.gz shrinker-bcd212f977121c1612145ab18771f49098e0bf93.zip | |
fix player flattens
| -rw-r--r-- | worker.js | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -90,9 +90,10 @@ var RABBITMQ_URI = process.env.RABBITMQ_URI || "amqp://localhost", msgs.filter((m) => m.properties.type == "player").map((msg) => { let players = JSON.parse(msg.content); players.map(async (p) => { - player = flatten(p); - if (!is_in(player_records, p.player)) - player_records.push(p.player); + console.log(p); + let player = flatten(p); + if (!is_in(player_records, player)) + player_records.push(player); }); }); |
