diff --git a/app/uk/gov/hmrc/excisemovementcontrolsystemapi/repository/MovementRepository.scala b/app/uk/gov/hmrc/excisemovementcontrolsystemapi/repository/MovementRepository.scala index 32a892bd..2a62e093 100644 --- a/app/uk/gov/hmrc/excisemovementcontrolsystemapi/repository/MovementRepository.scala +++ b/app/uk/gov/hmrc/excisemovementcontrolsystemapi/repository/MovementRepository.scala @@ -56,7 +56,7 @@ class MovementRepository @Inject() ( Codecs.playFormatCodec(ProblemMovement.format), Codecs.playFormatCodec(Total.format) ), - replaceIndexes = false + replaceIndexes = true ) { private def byId(id: String): Bson = Filters.equal("_id", id)