From fc6cc33a6515ad3a01ec13e6f360fd867430f44c Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 1 Dec 2023 03:23:29 +0000 Subject: [PATCH] add series id and type --- store/buildMatch.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/store/buildMatch.js b/store/buildMatch.js index 321af5cb0..411d63ee4 100644 --- a/store/buildMatch.js +++ b/store/buildMatch.js @@ -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, @@ -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, }); }