Skip to content

Commit

Permalink
Merge pull request #238 from hmrc/ITSASU-1444
Browse files Browse the repository at this point in the history
ITSASU-1444: Turn recreateIndexes flag to false
  • Loading branch information
srikanthsunkara79 authored Jul 29, 2022
2 parents e7c0455 + 876dcbb commit 2c7017d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/repositories/LockoutMongoRepository.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class LockoutMongoRepository @Inject()(val config: LockoutMongoRepositoryConfig)
mongoComponent = config.mongoComponent,
domainFormat = implicitly[Format[JsObject]],
indexes = config.indexes,
replaceIndexes = true
replaceIndexes = false
) {

def insert(document: JsObject): Future[InsertOneResult] = collection.insertOne(document).toFuture
Expand Down
2 changes: 1 addition & 1 deletion app/repositories/SubscriptionDataRepository.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class SubscriptionDataRepository @Inject()(config: SubscriptionDataRepositoryCon
mongoComponent = config.mongoComponent,
domainFormat = implicitly[Format[JsObject]],
indexes = config.indexes,
replaceIndexes = true
replaceIndexes = false
) {

private val findOneAndUpdateOptions: FindOneAndUpdateOptions = new FindOneAndUpdateOptions().upsert(true)
Expand Down
3 changes: 1 addition & 2 deletions app/repositories/ThrottlingRepository.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ class ThrottlingRepositoryConfig @Inject()(val appConfig: AppConfig) {

@Singleton
class ThrottlingRepository @Inject()(config: ThrottlingRepositoryConfig, instantProvider: InstantProvider)(implicit ec: ExecutionContext)

extends PlayMongoRepository[JsObject](
collectionName = "throttling",
mongoComponent = config.mongoComponent,
domainFormat = implicitly[Format[JsObject]],
indexes = config.indexes,
replaceIndexes = true
replaceIndexes = false
) {

private def timecode(time: Long) = time / 60000
Expand Down

0 comments on commit 2c7017d

Please sign in to comment.