Fix not loading any accounts and payees

This commit is contained in:
Jan Bader 2021-12-02 21:41:55 +00:00
parent 4646356b2d
commit f2e8721aa8

View File

@ -22,12 +22,12 @@ type YNABImport struct {
}
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 {
return nil, err
}
payees, err := q.GetPayees(context.Background(), uuid.UUID{})
payees, err := q.GetPayees(context.Background(), budgetID)
if err != nil {
return nil, err
}