Skip to content

Commit 8a08b26

Browse files
committed
handle exception feching teamfight data
1 parent 57bbc80 commit 8a08b26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

processors/processTeamfights.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function processTeamfights(entries, meta) {
6060
teamfights.forEach((tf) => {
6161
tf.players.forEach((p, ind) => {
6262
// record player's start/end xp for level change computation
63-
if (intervalState[tf.start] && intervalState[tf.end]) {
63+
if (intervalState[tf.start]?.[ind] && intervalState[tf.end]?.[ind]) {
6464
p.xp_start = intervalState[tf.start][ind].xp;
6565
p.xp_end = intervalState[tf.end][ind].xp;
6666
}

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
#curl localhost:5600 --data-binary "@/datadrive/odota-parser/7355186741_1742953546.dem"
44
#curl localhost:5600 --data-binary "@/datadrive/odota-parser/6298221747_1156784242.dem"
55

6-
curl localhost:5600/blob?replay_url=http://replay133.valve.net/570/2646802030_215184658.dem.bz2
6+
curl localhost:5600/blob?replay_url=http://replay185.valve.net/570/8583844960_1679394786.dem.bz2

0 commit comments

Comments
 (0)