fix auto-analysis of imported games
parent
71f242d217
commit
a2060da54f
|
@ -56,7 +56,8 @@ private[importer] final class Importer(
|
||||||
(GameRepo insertDenormalized game) >> {
|
(GameRepo insertDenormalized game) >> {
|
||||||
game.pgnImport.flatMap(_.user).isDefined ?? GameRepo.setImportCreatedAt(game)
|
game.pgnImport.flatMap(_.user).isDefined ?? GameRepo.setImportCreatedAt(game)
|
||||||
} >> applyMoves(Pov(game, Color.white), moves) >>-
|
} >> 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue