Skip to content

Commit

Permalink
rename to extract plaid data
Browse files Browse the repository at this point in the history
  • Loading branch information
Hbbb committed Feb 3, 2024
1 parent 5735c41 commit eeefdc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cli/internal/cmd/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func ExtractCmd(ctx context.Context) *cobra.Command {
return err
}

err = domain.ExtractTransactions(ctx, pc, queries)
err = domain.ExtractPlaidData(ctx, pc, queries)
if err != nil {
return err
}
Expand Down
6 changes: 1 addition & 5 deletions cli/internal/domain/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/politicker/budgeted/internal/plaid"
)

func ExtractTransactions(ctx context.Context, pc *plaid.APIClient, db *db.Queries) error {
func ExtractPlaidData(ctx context.Context, pc *plaid.APIClient, db *db.Queries) error {
institutions, err := db.InstitutionList(ctx)
if err != nil {
return err
Expand All @@ -32,10 +32,6 @@ func ExtractTransactions(ctx context.Context, pc *plaid.APIClient, db *db.Querie
return nil
}

func ExtractAccounts() error {
return nil
}

func PlaidClientFromConfig(ctx context.Context, isSandbox bool, queries *db.Queries) (*plaid.APIClient, error) {
config, err := queries.ConfigGet(ctx)
if err != nil {
Expand Down

0 comments on commit eeefdc3

Please sign in to comment.