Report date as moment object in list generated by "retrieveByTeamDivisionAndSeason" function in games.js

main
sudoer777 2021-11-21 17:39:47 -07:00
parent 4576b72612
commit 344e8b66d3
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ async function retrieveByTeamDivisionAndSeason(teamID, divisionID, seasonID) {
teamScore = opponentIsTeam2 ? row[6] : row[7];
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;
}