Add native NixOS deployment and UI-managed provider credentials
This commit is contained in:
@@ -218,7 +218,13 @@ func (a *App) Balances(ctx context.Context, id string) ([]banking.Balance, error
|
||||
}
|
||||
for _, account := range s.Data.Accounts {
|
||||
if account.ID == id && account.ExternalAccountID != "" {
|
||||
return a.bank.Balances(ctx, account.ExternalAccountID)
|
||||
for _, session := range a.ops.Sessions {
|
||||
for _, linked := range session.Accounts {
|
||||
if linked.ID == account.ID && linked.ExternalAccountID == account.ExternalAccountID {
|
||||
return a.bank.Balances(ctx, linked.ExternalAccountID)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil, errors.New("account is not connected")
|
||||
|
||||
Reference in New Issue
Block a user