Fix creating group with name of category

This commit is contained in:
Jan Bader 2021-12-06 20:46:25 +00:00
parent e3cf69ab08
commit 2caaa1a048
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ func (ynab *YNABImport) GetCategory(group string, name string) (uuid.NullUUID, e
} }
} }
categoryGroup, err := ynab.queries.CreateCategoryGroup(ynab.Context, postgres.CreateCategoryGroupParams{Name: name, BudgetID: ynab.budgetID}) categoryGroup, err := ynab.queries.CreateCategoryGroup(ynab.Context, postgres.CreateCategoryGroupParams{Name: group, BudgetID: ynab.budgetID})
if err != nil { if err != nil {
return uuid.NullUUID{}, err return uuid.NullUUID{}, err
} }

View File

@ -22,7 +22,7 @@
{{.Payee}} {{.Payee}}
</td> </td>
<td> <td>
{{.Category}} {{.CategoryGroup}} : {{.Category}}
</td> </td>
<td> <td>
<a href="transaction/{{.ID}}">{{.Memo}}</a> <a href="transaction/{{.ID}}">{{.Memo}}</a>