bugfix/fixed the Future.filter predicate is not satisfied bug for V500 -step3 use filter

This commit is contained in:
hongwei 2022-08-18 08:13:16 +02:00
parent f330d9f71f
commit bc4269d7a0

View File

@ -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)