Fix income category not being correct for newly created budget

This commit is contained in:
Jan Bader 2022-04-07 07:52:06 +00:00
parent 8fe91293e1
commit ed321d3895

View File

@ -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
}