Skip to content

Commit

Permalink
fix(payments): fix missing provider in balance (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas authored Feb 12, 2024
1 parent c12bf24 commit ddb85db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/payments/internal/messages/balances.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
type balanceMessagePayload struct {
AccountID string `json:"accountID"`
ConnectorID string `json:"connectorId"`
Provider string `json:"provider"`
CreatedAt time.Time `json:"createdAt"`
Asset string `json:"asset"`
Balance *big.Int `json:"balance"`
Expand All @@ -22,6 +23,7 @@ func (m *Messages) NewEventSavedBalances(balance *models.Balance) publish.EventM
payload := balanceMessagePayload{
CreatedAt: balance.CreatedAt,
ConnectorID: balance.ConnectorID.String(),
Provider: balance.ConnectorID.Provider.String(),
AccountID: balance.AccountID.String(),
Asset: balance.Asset.String(),
Balance: balance.Balance,
Expand Down

0 comments on commit ddb85db

Please sign in to comment.