enhanced the error handling for updateUserAccountViewsFuture method

This commit is contained in:
hongwei 2019-04-29 13:17:40 +02:00
parent 856e706dae
commit ec17306dd4

View File

@ -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)
}
/**