Skip to content

Commit

Permalink
put duration back
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 2, 2023
1 parent 8f92fb9 commit 70e643e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion store/queries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,9 @@ function insertMatch(match, options, cb) {
types[options.type],
JSON.stringify({
match_id: match.match_id,
// start_time + duration = end_time
start_time: match.start_time,
duration: match.duration,
})
);
redis.ltrim(types[options.type], 0, 9);
Expand Down Expand Up @@ -1454,8 +1456,9 @@ function insertMatch(match, options, cb) {
match_id: match.match_id,
// leagueid to determine whether to upsert Postgres after parse
leagueid: match.leagueid,
// start_time just for debug logging
// start_time and duration for logging
start_time: match.start_time,
duration: match.duration,
pgroup: match.pgroup,
origin: options.origin,
},
Expand Down

0 comments on commit 70e643e

Please sign in to comment.