Pass budgetID
This commit is contained in:
parent
57542b5202
commit
e9173a3d37
@ -111,7 +111,7 @@ func (ynab *YNABImport) GetAccount(name string) (*postgres.Account, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
account, err := ynab.queries.CreateAccount(ynab.Context, name)
|
account, err := ynab.queries.CreateAccount(ynab.Context, postgres.CreateAccountParams{Name: name, BudgetID: ynab.budgetID})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ func (ynab *YNABImport) GetPayee(name string) (uuid.NullUUID, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
payee, err := ynab.queries.CreatePayee(ynab.Context, name)
|
payee, err := ynab.queries.CreatePayee(ynab.Context, postgres.CreatePayeeParams{Name: name, BudgetID: ynab.budgetID})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return uuid.NullUUID{}, err
|
return uuid.NullUUID{}, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user