Skip to content

Commit

Permalink
add series id and type
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 1, 2023
1 parent a1d40ea commit fc6cc33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion store/buildMatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function extendPlayerData(player, match) {

async function prodataInfo(matchId) {
const result = await db
.first(['radiant_team_id', 'dire_team_id', 'leagueid'])
.first(['radiant_team_id', 'dire_team_id', 'leagueid', 'series_id', 'series_type'])
.from('matches')
.where({
match_id: matchId,
Expand All @@ -70,6 +70,8 @@ async function prodataInfo(matchId) {
league,
radiant_team: radiantTeam,
dire_team: direTeam,
series_id: result.series_id,
series_type: result.series_type,
});
}

Expand Down

0 comments on commit fc6cc33

Please sign in to comment.