mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 15:27:01 +00:00
enhanced the error handling for updateUserAccountViewsFuture method
This commit is contained in:
parent
856e706dae
commit
ec17306dd4
@ -846,9 +846,11 @@ def restoreSomeSessions(): Unit = {
|
||||
|
||||
def updateUserAccountViewsFuture(user: User, callContext: Option[CallContext]) = {
|
||||
for{
|
||||
Full(accounts)<- Connector.connector.vend.getBankAccountsForUserFuture(user.name,callContext)
|
||||
(accounts, _) <- Connector.connector.vend.getBankAccountsForUserFuture(user.name,callContext) map {
|
||||
connectorEmptyResponse(_, callContext)
|
||||
}
|
||||
}yield
|
||||
updateUserAccountViews(user, accounts._1)
|
||||
updateUserAccountViews(user, accounts)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user