summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--worker.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/worker.js b/worker.js
index 6565884..558f3ed 100644
--- a/worker.js
+++ b/worker.js
@@ -138,6 +138,8 @@ var RABBITMQ_URI = process.env.RABBITMQ_URI,
roster.matchApiId = match.id;
roster.attributes.shardId = match.attributes.shardId;
roster.createdAt = match.createdAt;
+ // TODO API workaround: roster does not have `winner`
+ roster.attributes.stats.winner = roster.participants[0].stats.winner;
roster.participants = roster.participants.map((participant) => {
participant.attributes.shardId = roster.attributes.shardId;