Populate player stats when weekly player data patch is run

This commit is contained in:
2020-11-07 16:14:00 -06:00
parent 27f8f5e4dc
commit d85570600a
5 changed files with 26 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ class Teams extends Controller {
*/
async get_my_team_players(req, res, next) {
const players = await req.user_team.players()
return res.api(await Promise.all(players.map(x => x.to_api())))
return res.api(await Promise.all(players.map(x => x.to_api(true))))
}
/**