diff --git a/postgres/budgetservice.go b/postgres/budgetservice.go index 82372dd..58918df 100644 --- a/postgres/budgetservice.go +++ b/postgres/budgetservice.go @@ -59,5 +59,6 @@ func (s *Database) NewBudget(context context.Context, name string, userID uuid.U return nil, fmt.Errorf("commit: %w", err) } + budget.IncomeCategoryID = cat.ID return &budget, nil }