summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-14 12:07:04 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-14 12:07:04 +0200
commit45f1cc854ca9476482b73baef9e782a80dc5362b (patch)
treeb3a64b0b6e8b98d643a74152b7522937fa8f4a21 /worker.js
parent92b2d2756e32ff1b13b285028f68dac5f39a5969 (diff)
downloadprocessor-45f1cc854ca9476482b73baef9e782a80dc5362b.tar.gz
processor-45f1cc854ca9476482b73baef9e782a80dc5362b.zip
push match_api_id to participant
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/worker.js b/worker.js
index 7d704ae..143c687 100644
--- a/worker.js
+++ b/worker.js
@@ -201,6 +201,7 @@ function snakeCaseKeys(obj) {
roster.attributes.stats.winner = false;
roster.participants = roster.participants.map((participant) => {
+ // ! attributes added here need to be added via `calculate_participant_stats` too
participant.attributes.shardId = roster.attributes.shardId;
participant.rosterApiId = roster.id;
participant.matchApiId = match.id;
@@ -418,7 +419,7 @@ function snakeCaseKeys(obj) {
// attributes to copy from API to participant
// these don't change over the duration of the match
// (or aren't in Telemetry)
- ["api_id", "shard_id", "player_api_id", "roster_api_id",
+ ["api_id", "shard_id", "player_api_id", "roster_api_id", "match_api_id",
"winner", "went_afk", "first_afk_time",
"skin_key", "skill_tier", "level",
"karma_level", "actor"].map((attr) =>