remove hardcoded db field name
parent
528bb44599
commit
e6c8baad34
|
@ -156,7 +156,7 @@ final class UserRepo(val coll: Coll)(implicit ec: scala.concurrent.ExecutionCont
|
|||
coll
|
||||
.update(false, WriteConcern.Unacknowledged)
|
||||
.one(
|
||||
$id(userId) ++ (value < 0).??($doc("colorIt" $gt -3)),
|
||||
$id(userId) ++ (value < 0).??($doc(F.colorIt $gt -3)),
|
||||
$inc(F.colorIt -> value)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue