log setting invalid chapter node properties
parent
697f1f3044
commit
09f1eef283
|
@ -158,9 +158,16 @@ final class ChapterRepo(val coll: AsyncColl)(implicit
|
||||||
value: Option[A]
|
value: Option[A]
|
||||||
)(chapter: Chapter, path: Path): Funit =
|
)(chapter: Chapter, path: Path): Funit =
|
||||||
coll {
|
coll {
|
||||||
_.updateOrUnsetField($id(chapter.id), pathToField(path, field), value)
|
_.updateOrUnsetField(
|
||||||
|
$id(chapter.id) ++ $doc(path.toDbField $exists true),
|
||||||
|
pathToField(path, field),
|
||||||
|
value
|
||||||
|
)
|
||||||
.addEffect {
|
.addEffect {
|
||||||
case 0 => logger.warn(s"Can't setNodeValue ${chapter.id} $path $field, no node matched!")
|
case 0 =>
|
||||||
|
logger.warn(
|
||||||
|
s"Can't setNodeValue ${chapter.id} '$path' $field '${path.toDbField}' / no node matched!"
|
||||||
|
)
|
||||||
case _ =>
|
case _ =>
|
||||||
}
|
}
|
||||||
}.void
|
}.void
|
||||||
|
|
Loading…
Reference in New Issue