Skip to content

Commit

Permalink
Merge pull request #10 from numary/feature/fix-stripe-provider
Browse files Browse the repository at this point in the history
Fix provider in generated payments.
  • Loading branch information
gfyrag authored May 31, 2022
2 parents 3210abf + 62edb0c commit 6291b25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pkg/bridge/connectors/stripe/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
)

type Scheduler struct {
name string
logObjectStorage bridge.LogObjectStorage
runner *Runner
accountRunners map[string]*Runner
Expand Down Expand Up @@ -69,7 +68,7 @@ func (s *Scheduler) ingest(ctx context.Context, bts []*stripe.BalanceTransaction

batch := bridge.Batch{}
for _, bt := range bts {
batchElement, handled := CreateBatchElement(bt, s.name, !tail)
batchElement, handled := CreateBatchElement(bt, !tail)
if !handled {
s.accountLogger(account).Errorf("Balance transaction type not handled: %s", bt.Type)
continue
Expand Down
2 changes: 1 addition & 1 deletion pkg/bridge/connectors/stripe/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ var currencies = map[string]currency{
"ZWD": {2}, // Zimbabwe Dollar
}

func CreateBatchElement(bt *stripe.BalanceTransaction, connectorName string, forward bool) (bridge.BatchElement, bool) {
func CreateBatchElement(bt *stripe.BalanceTransaction, forward bool) (bridge.BatchElement, bool) {
var (
identifier payment.Identifier
paymentData *payment.Data
Expand Down

0 comments on commit 6291b25

Please sign in to comment.