fix pgn game urls

This commit is contained in:
Thibault Duplessis 2013-10-04 16:20:18 +02:00
parent 77743305ca
commit 382fca4c5f

View file

@ -8,7 +8,7 @@ import chess.format.{ pgn ⇒ chessPgn }
import makeTimeout.short
import org.joda.time.format.DateTimeFormat
import lila.hub.actorApi.router.Watcher
import lila.hub.actorApi.router.{ Abs, Watcher }
import lila.user.User
private[game] final class PgnDump(
@ -33,7 +33,7 @@ private[game] final class PgnDump(
}
private def gameUrl(id: String): Fu[String] =
router ? Watcher(id, "white") mapTo manifest[String]
router ? Abs(Watcher(id, "white")) mapTo manifest[String]
private def gameUsers(game: Game): Fu[(Option[User], Option[User])] =
(game.whitePlayer.userId ?? findUser) zip (game.blackPlayer.userId ?? findUser)