Remove extra parans
parent
384cc4493e
commit
049a30e536
|
@ -174,7 +174,7 @@ final class UserRepo(val coll: Coll)(implicit ec: scala.concurrent.ExecutionCont
|
|||
.update(ordered = false, WriteConcern.Unacknowledged)
|
||||
.one(
|
||||
// limit to -3 <= colorIt <= 5 but set when undefined
|
||||
$id(userId) ++ $doc(F.colorIt -> $not(if (value < 0) $lte(-3) else $gte(5)))),
|
||||
$id(userId) ++ $doc(F.colorIt -> $not(if (value < 0) $lte(-3) else $gte(5))),
|
||||
$inc(F.colorIt -> value)
|
||||
)
|
||||
.unit
|
||||
|
|
Loading…
Reference in New Issue