fix previous commit

pull/2465/head
Thibault Duplessis 2016-12-11 21:42:28 +01:00
parent 4bdec2f6c3
commit 6f3b94d944
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ private[puzzle] final class PuzzleApi(
val fenStart = p.fen.split(' ').take(2).mkString(" ")
puzzleColl.exists($doc(
F.id -> $gte(puzzleIdMin),
F.fen.$regex(fenStart.replace("/", "\\/"), ""),
F.fen.$regex(fenStart.replace("/", "\\/"), "")
)) flatMap {
case false => puzzleColl insert p inject id
case _ => fufail(s"Duplicate puzzle $fenStart")