diff --git a/app/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepository.scala b/app/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepository.scala index 1eee0dcca..c7f6431d8 100644 --- a/app/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepository.scala +++ b/app/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepository.scala @@ -702,6 +702,7 @@ class ApplicationRepository @Inject() (mongo: MongoComponent, val metrics: Metri "refreshTokensAvailableFor", "rateLimitTier", "environment", + "blocked", "allowAutoDelete" ) )) diff --git a/it/test/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepositorySearchISpec.scala b/it/test/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepositorySearchISpec.scala index 6a3756a81..efa561625 100644 --- a/it/test/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepositorySearchISpec.scala +++ b/it/test/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepositorySearchISpec.scala @@ -273,6 +273,7 @@ class ApplicationRepositorySearchISpec result.matching.head.total mustBe 1 result.applications.size mustBe 1 result.applications.head.id mustBe ropcApplication.id + result.applications.head.blocked mustBe false } "return applications based on blocked filter" in { @@ -298,6 +299,7 @@ class ApplicationRepositorySearchISpec result.matching.head.total mustBe 1 result.applications.size mustBe 1 result.applications.head.id mustBe blockedApplication.id + result.applications.head.blocked mustBe true } "return applications with no API subscriptions" in {