get next game from round proxy
This commit is contained in:
parent
ff6c355683
commit
5d44201106
|
@ -125,7 +125,7 @@ object Round extends LilaController with TheftPrevention {
|
|||
}
|
||||
|
||||
def next(gameId: String) = Auth { implicit ctx => me =>
|
||||
OptionFuResult(GameRepo game gameId) { currentGame =>
|
||||
OptionFuResult(env.proxy game gameId) { currentGame =>
|
||||
otherPovs(currentGame) map getNext(currentGame) map {
|
||||
_ orElse Pov(currentGame, me)
|
||||
} flatMap {
|
||||
|
|
|
@ -161,7 +161,7 @@ object Setup extends LilaController with TheftPrevention {
|
|||
NoPlaybanOrCurrent {
|
||||
for {
|
||||
config <- env.forms.hookConfig
|
||||
game <- GameRepo.game(gameId)
|
||||
game <- GameRepo game gameId
|
||||
blocking <- ctx.userId ?? Env.relation.api.fetchBlocking
|
||||
hookConfig = game.fold(config)(config.updateFrom)
|
||||
sameOpponents = game.??(_.userIds)
|
||||
|
|
Loading…
Reference in a new issue