Skip to content

Commit

Permalink
feat(libs): update payments events (#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas authored Feb 7, 2024
1 parent 225a205 commit 501b9a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions internal/messages/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ func (m *Messages) NewEventSavedAccounts(provider models.ConnectorProvider, acco
Provider: provider.String(),
}

if account.Type == models.AccountTypeExternalFormance {
payload.Type = models.AccountTypeExternal.String()
}

return publish.EventMessage{
Date: time.Now().UTC(),
App: events.EventApp,
Expand Down
1 change: 0 additions & 1 deletion internal/messages/transfer_initiations.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ type transferInitiationsMessagePayload struct {
ID string `json:"id"`
CreatedAt time.Time `json:"createdAt"`
ScheduleAt time.Time `json:"scheduledAt"`
UpdatedAt time.Time `json:"updatedAt"`
ConnectorID string `json:"connectorId"`
Provider string `json:"provider"`
Description string `json:"description"`
Expand Down

0 comments on commit 501b9a1

Please sign in to comment.