create-categories #79

Open
jacob1123 wants to merge 31 commits from create-categories into master
Showing only changes of commit 4d04529ae2 - Show all commits

View File

@ -24,6 +24,9 @@ type CreatePayeeParams struct {
}
func (q *Queries) CreatePayee(ctx context.Context, arg CreatePayeeParams) (Payee, error) {
if len(arg.Name) > 50 {
arg.Name = arg.Name[:50]
}
row := q.db.QueryRowContext(ctx, createPayee, arg.Name, arg.BudgetID)
var i Payee
err := row.Scan(&i.ID, &i.BudgetID, &i.Name)