Skip to content

Commit

Permalink
Merge pull request #2401 from constantine2nd/develop
Browse files Browse the repository at this point in the history
feature/Tweak endpoint selfRevokeConsent v5.1.0
  • Loading branch information
simonredfern committed Jun 18, 2024
2 parents dc056fc + 3c32d25 commit 23f2658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obp-api/src/main/scala/code/api/v5_1_0/APIMethods510.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ trait APIMethods510 {
(Full(user), callContext) <- authenticatedAccess(cc)
consentId = getConsentIdRequestHeaderValue(cc.requestHeaders).getOrElse("")
_ <- Future(Consents.consentProvider.vend.getConsentByConsentId(consentId)) map {
unboxFullOrFail(_, callContext, ConsentNotFound)
unboxFullOrFail(_, callContext, ConsentNotFound, 404)
}
consent <- Future(Consents.consentProvider.vend.revoke(consentId)) map {
i => connectorEmptyResponse(i, callContext)
Expand Down

0 comments on commit 23f2658

Please sign in to comment.