Report date as moment object in list generated by "retrieveByTeamDivisionAndSeason" function in games.js
parent
4576b72612
commit
344e8b66d3
|
@ -51,7 +51,7 @@ async function retrieveByTeamDivisionAndSeason(teamID, divisionID, seasonID) {
|
||||||
teamScore = opponentIsTeam2 ? row[6] : row[7];
|
teamScore = opponentIsTeam2 ? row[6] : row[7];
|
||||||
opponentScore = opponentIsTeam2 ? row[7] : row[6];
|
opponentScore = opponentIsTeam2 ? row[7] : row[6];
|
||||||
|
|
||||||
gamesList.push(new Game(row[0], row[3], teamID, opponentID, teamScore, opponentScore));
|
gamesList.push(new Game(row[0], moment(row[3]), teamID, opponentID, teamScore, opponentScore));
|
||||||
});
|
});
|
||||||
return gamesList;
|
return gamesList;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue