diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-14 12:07:04 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-14 12:07:04 +0200 |
| commit | 45f1cc854ca9476482b73baef9e782a80dc5362b (patch) | |
| tree | b3a64b0b6e8b98d643a74152b7522937fa8f4a21 | |
| parent | 92b2d2756e32ff1b13b285028f68dac5f39a5969 (diff) | |
| download | processor-45f1cc854ca9476482b73baef9e782a80dc5362b.tar.gz processor-45f1cc854ca9476482b73baef9e782a80dc5362b.zip | |
push match_api_id to participant
| -rw-r--r-- | worker.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) => |
