Remove PlaybanApi from Tournament Env
This commit is contained in:
parent
fc5a9df65b
commit
8dabb22781
|
@ -29,8 +29,7 @@ final class Env(
|
||||||
trophyApi: lila.user.TrophyApi,
|
trophyApi: lila.user.TrophyApi,
|
||||||
notifyApi: lila.notify.NotifyApi,
|
notifyApi: lila.notify.NotifyApi,
|
||||||
scheduler: lila.common.Scheduler,
|
scheduler: lila.common.Scheduler,
|
||||||
startedSinceSeconds: Int => Boolean,
|
startedSinceSeconds: Int => Boolean
|
||||||
playbanApi: lila.playban.PlaybanApi
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
private val startsAtMillis = nowMillis
|
private val startsAtMillis = nowMillis
|
||||||
|
@ -226,7 +225,6 @@ object Env {
|
||||||
trophyApi = lila.user.Env.current.trophyApi,
|
trophyApi = lila.user.Env.current.trophyApi,
|
||||||
notifyApi = lila.notify.Env.current.api,
|
notifyApi = lila.notify.Env.current.api,
|
||||||
scheduler = lila.common.PlayApp.scheduler,
|
scheduler = lila.common.PlayApp.scheduler,
|
||||||
startedSinceSeconds = lila.common.PlayApp.startedSinceSeconds,
|
startedSinceSeconds = lila.common.PlayApp.startedSinceSeconds
|
||||||
playbanApi = lila.playban.Env.current.api
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue