From 29f4a46abf55515de3c3ce48c14a73a28c26c73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Mili=C4=87?= Date: Mon, 19 Dec 2022 12:31:19 +0100 Subject: [PATCH] refactor/Rename a function name --- obp-api/src/main/scala/code/api/util/ConsentUtil.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obp-api/src/main/scala/code/api/util/ConsentUtil.scala b/obp-api/src/main/scala/code/api/util/ConsentUtil.scala index d4727ef22..1523063ac 100644 --- a/obp-api/src/main/scala/code/api/util/ConsentUtil.scala +++ b/obp-api/src/main/scala/code/api/util/ConsentUtil.scala @@ -313,7 +313,7 @@ object Consent { } } - private def hasConsentInternal(consentAsJwt: String, callContext: CallContext): Future[(Box[User], Option[CallContext])] = { + private def hasConsentCommon(consentAsJwt: String, callContext: CallContext): Future[(Box[User], Option[CallContext])] = { implicit val dateFormats = CustomJsonFormats.formats def applyConsentRules(consent: ConsentJWT): Future[(Box[User], Option[CallContext])] = { @@ -368,7 +368,7 @@ object Consent { (hasConsentInternalOldStyle(consentIdAsJwt, callContext), callContext) } private def hasConsent(consentAsJwt: String, callContext: CallContext): Future[(Box[User], Option[CallContext])] = { - hasConsentInternal(consentAsJwt, callContext) + hasConsentCommon(consentAsJwt, callContext) } def applyRules(consentJwt: Option[String], callContext: CallContext): Future[(Box[User], Option[CallContext])] = {