Fix not loading any accounts and payees
This commit is contained in:
parent
4646356b2d
commit
f2e8721aa8
@ -22,12 +22,12 @@ type YNABImport struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewYNABImport(q *postgres.Queries, budgetID uuid.UUID) (*YNABImport, error) {
|
func NewYNABImport(q *postgres.Queries, budgetID uuid.UUID) (*YNABImport, error) {
|
||||||
accounts, err := q.GetAccounts(context.Background(), uuid.UUID{})
|
accounts, err := q.GetAccounts(context.Background(), budgetID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
payees, err := q.GetPayees(context.Background(), uuid.UUID{})
|
payees, err := q.GetPayees(context.Background(), budgetID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user