docfix/Tweak function name

This commit is contained in:
Marko Milić 2024-12-30 13:24:59 +01:00
parent 0a0829ffaf
commit b2f81e674d
2 changed files with 4 additions and 4 deletions

View File

@ -743,9 +743,9 @@ object Consent extends MdcLoggable {
Full(CertificateUtil.jwtWithHmacProtection(jwtClaims, secret))
}
}
def updateBerlinGroupConsentJWT(access: ConsentAccessJson,
consent: MappedConsent,
callContext: Option[CallContext]): Future[Box[String]] = {
def updateAccountAccessOfBerlinGroupConsentJWT(access: ConsentAccessJson,
consent: MappedConsent,
callContext: Option[CallContext]): Future[Box[String]] = {
implicit val dateFormats = CustomJsonFormats.formats
val payloadToUpdate: Box[ConsentJWT] = JwtUtil.getSignedPayloadAsJson(consent.jsonWebToken) // Payload as JSON string
.map(net.liftweb.json.parse(_).extract[ConsentJWT]) // Extract case class

View File

@ -1411,7 +1411,7 @@ trait APIMethods510 {
consentJson.access.transactions.isEmpty
}
}
consentJWT <- Consent.updateBerlinGroupConsentJWT(
consentJWT <- Consent.updateAccountAccessOfBerlinGroupConsentJWT(
consentJson.access,
consent,
cc.callContext