Skip to content

Commit

Permalink
Run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Jan 26, 2021
1 parent ce39b0a commit 3711e1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions daikoku/app/controllers/ApiController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ class ApiController(DaikokuAction: DaikokuAction,
.filter(_._2)
.map(_._1)

val source = subSource
val source = subSource
.via(createSubFlow)
.via(updateTeamConcurrentFlow)

Expand Down Expand Up @@ -816,7 +816,7 @@ class ApiController(DaikokuAction: DaikokuAction,
customMaxPerSecond = (body \ "customMaxPerSecond").asOpt[Long],
customMaxPerDay = (body \ "customMaxPerDay").asOpt[Long],
customMaxPerMonth = (body \ "customMaxPerMonth").asOpt[Long],
customReadOnly = (body \ "customReadOnly").asOpt[Boolean]
customReadOnly = (body \ "customReadOnly").asOpt[Boolean]
)
apiService.updateSubscription(ctx.tenant, subToSave, api)
.map {
Expand Down Expand Up @@ -1089,11 +1089,11 @@ class ApiController(DaikokuAction: DaikokuAction,
case Some(value) => env.dataStore.apiRepo
.forTenant(ctx.tenant.id)
.exists(Json.obj("_humanReadableId" -> maybeHumanReadableId, "_id" -> Json.obj("$ne" -> value)))
.map (exists => Ok(Json.obj("exists" -> exists)))
.map(exists => Ok(Json.obj("exists" -> exists)))
case None => env.dataStore.apiRepo
.forTenant(ctx.tenant.id)
.exists(Json.obj("_humanReadableId" -> maybeHumanReadableId))
.map (exists => Ok(Json.obj("exists" -> exists)))
.map(exists => Ok(Json.obj("exists" -> exists)))
}
}
}
Expand Down

0 comments on commit 3711e1e

Please sign in to comment.