Skip to content

Commit

Permalink
API-5560 - PR Bot changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anjumabbas5 committed Jan 4, 2023
1 parent 822373b commit 5638fa2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import javax.inject._
import uk.gov.hmrc.apisubscriptionfields.model._
import Types._

import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
//import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.{ExecutionContext, Future}
import scala.concurrent.Future.successful
import cats.data.NonEmptyList
import uk.gov.hmrc.apisubscriptionfields.repository.SubscriptionFieldsRepository
Expand All @@ -32,7 +32,7 @@ import cats.data.{NonEmptyList => NEL}
class SubscriptionFieldsService @Inject() (
repository: SubscriptionFieldsRepository,
apiFieldDefinitionsService: ApiFieldDefinitionsService,
pushPullNotificationService: PushPullNotificationService) {
pushPullNotificationService: PushPullNotificationService)(implicit ec: ExecutionContext) {


private def validate(fields: Fields, fieldDefinitions: NonEmptyList[FieldDefinition]): SubsFieldValidationResponse = {
Expand Down
4 changes: 2 additions & 2 deletions conf/application-json-logger.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<encoder class="uk.gov.hmrc.play.logging.JsonEncoder"/>
</appender>

<logger name="uk.gov" level="${logger.uk.gov:-WARN}"/>
<logger name="uk.gov" level="WARN"/>

<root level="${logger.application:-WARN}">
<root level="WARN">
<appender-ref ref="STDOUT"/>
</root>

Expand Down
6 changes: 0 additions & 6 deletions conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ play.modules.enabled += "uk.gov.hmrc.play.http.metrics.Module"
# timeout 15 minutes after login (regardless of user activity).
# session.maxAge=900

# Secret key
# ~~~~~
# The secret key is used to secure cryptographics functions.
# If you deploy your application to several instances be sure to use the same key!
play.http.secret.key = "VJ2GT0tQY4ucpdoPeAeJ2hHCPCBYx6gxthXL2WkoOMMgtbgvswGurFEOzhMzOX4q"

# Session configuration
# ~~~~~
play.http.session.httpOnly = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ package uk.gov.hmrc.apisubscriptionfields.repository
import org.mongodb.scala.model.Filters
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec
import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach, OptionValues}
import org.scalatest.{BeforeAndAfterEach, OptionValues}
import org.scalatestplus.play.guice.GuiceOneAppPerSuite
import play.api.test.{DefaultAwaitTimeout, FutureAwaits}
import uk.gov.hmrc.apisubscriptionfields.model.{ApiContext, ApiFieldDefinitions, ApiVersion, JsonFormatters}
import uk.gov.hmrc.apisubscriptionfields.model.{ApiContext, ApiFieldDefinitions}
import uk.gov.hmrc.apisubscriptionfields.SubscriptionFieldsTestData.{FakeContext, FakeVersion, NelOfFieldDefinitions, uniqueApiContext}
import uk.gov.hmrc.mongo.play.json.Codecs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import uk.gov.hmrc.apisubscriptionfields.model._
import uk.gov.hmrc.apisubscriptionfields.repository._
import uk.gov.hmrc.apisubscriptionfields.{AsyncHmrcSpec, FieldDefinitionTestData, SubscriptionFieldsTestData}
import uk.gov.hmrc.http.HeaderCarrier
import scala.concurrent.ExecutionContext.Implicits.global

import scala.concurrent.Future.{failed, successful}

Expand Down

0 comments on commit 5638fa2

Please sign in to comment.