fix auto-analysis of imported games

pull/382/head
Thibault Duplessis 2015-03-25 09:31:11 +01:00
parent 71f242d217
commit a2060da54f
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ private[importer] final class Importer(
(GameRepo insertDenormalized game) >> {
game.pgnImport.flatMap(_.user).isDefined ?? GameRepo.setImportCreatedAt(game)
} >> applyMoves(Pov(game, Color.white), moves) >>-
(result foreach { r => applyResult(game, r) }) inject game
(result foreach { r => applyResult(game, r) }) >>
(GameRepo game game.id).map(_ | game)
}
}
}