mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 19:16:53 +00:00
bugfix/fixed the Future.filter predicate is not satisfied bug for V500 -step3 use filter
This commit is contained in:
parent
f330d9f71f
commit
bc4269d7a0
@ -665,7 +665,7 @@ trait OBPRestHelper extends RestHelper with MdcLoggable {
|
||||
|
||||
for(route <- routes) {
|
||||
// one endpoint can have multiple ResourceDocs, so here use filter instead of find, e.g APIMethods400.Implementations400.createTransactionRequest
|
||||
val resourceDocs = allResourceDocs.find(_.partialFunction == route)
|
||||
val resourceDocs = allResourceDocs.filter(_.partialFunction == route)
|
||||
|
||||
if(resourceDocs.isEmpty) {
|
||||
oauthServe(apiPrefix(route), None)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user