Skip to content

Commit

Permalink
Merge pull request #68 from hmrc/upgrade-reactivemongo-0.164
Browse files Browse the repository at this point in the history
Upgrade reactivemongo to 0.16.4
  • Loading branch information
thomas-vogel444 authored Mar 26, 2019
2 parents 6b5e9e4 + 0b175cb commit 4e4d1ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions project/LibraryDependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ object LibraryDependencies {
val compile: Seq[ModuleID] = PlayCrossCompilation.dependencies(
shared = Seq(
"com.github.nscala-time" %% "nscala-time" % "2.22.0",
"org.reactivemongo" %% "reactivemongo" % "0.16.1"
"org.reactivemongo" %% "reactivemongo" % "0.16.4"
),
play25 = Seq(
"org.slf4j" % "slf4j-api" % "1.7.26",
"org.slf4j" % "log4j-over-slf4j" % "1.7.26",
"com.typesafe.play" %% "play" % play25Version,
"org.reactivemongo" %% "reactivemongo-play-json" % "0.16.0-play25",
"org.reactivemongo" %% "reactivemongo-play-json" % "0.16.4-play25",
// force dependencies due to security flaws found in jackson-databind < 2.9.x using XRay
"com.fasterxml.jackson.core" % "jackson-core" % "2.9.8",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.8",
Expand All @@ -29,7 +29,7 @@ object LibraryDependencies {
"org.slf4j" % "log4j-over-slf4j" % "1.7.26",
"com.typesafe.play" %% "play" % play26Version,
"com.typesafe.play" %% "play-guice" % play26Version,
"org.reactivemongo" %% "reactivemongo-play-json" % "0.16.0-play26"
"org.reactivemongo" %% "reactivemongo-play-json" % "0.16.4-play26"
)
)

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/uk/gov/hmrc/mongo/ReactiveRepository.scala
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ abstract class ReactiveRepository[A, ID](
val failures = docs.collect { case Left(f) => f }
lazy val successes = docs.collect { case Right(x) => x }
if (failures.isEmpty) {
collection.insert(ordered = false)(implicitly[collection.pack.Writer[JsObject]]).many(successes)
collection.insert(ordered = false).many(successes)
} else {
Future.failed[MultiBulkWriteResult](new BulkInsertRejected())
}
Expand Down

0 comments on commit 4e4d1ec

Please sign in to comment.