preload tournament winners

pull/2571/head
Thibault Duplessis 2017-01-25 13:18:04 +01:00
parent fea799aa12
commit 31e254d69f
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ object User extends LilaController {
// }
tourneyWinners Env.tournament.winners.all.map(_.top)
online env.cached top50Online true
_ <- Env.user.lightUserApi preloadMany tourneyWinners.map(_.userId)
res <- negotiate(
html = fuccess(Ok(html.user.list(
tourneyWinners = tourneyWinners,