From 3711e1e2c872cf89db5cc15c2c824d9a3b58cb6c Mon Sep 17 00:00:00 2001 From: Quentin Date: Tue, 26 Jan 2021 11:41:45 +0100 Subject: [PATCH] Run tests --- daikoku/app/controllers/ApiController.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daikoku/app/controllers/ApiController.scala b/daikoku/app/controllers/ApiController.scala index f4cda314f..ecf2f521a 100644 --- a/daikoku/app/controllers/ApiController.scala +++ b/daikoku/app/controllers/ApiController.scala @@ -498,7 +498,7 @@ class ApiController(DaikokuAction: DaikokuAction, .filter(_._2) .map(_._1) - val source = subSource + val source = subSource .via(createSubFlow) .via(updateTeamConcurrentFlow) @@ -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 { @@ -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))) } } }