This commit is contained in:
@@ -74,10 +74,10 @@ func (r *goalRepository) Insert(ctx context.Context, goal models.Goal) error {
|
||||
_, err := r.db.NamedExecContext(ctx, `
|
||||
INSERT INTO goal (
|
||||
goal_id, user_id, group_id, amount, start_time, end_time, name, description,
|
||||
composition_mode, unweighted, item_id
|
||||
composition_mode, unweighted, item_id, task_filter, item_filter
|
||||
) VALUES (
|
||||
:goal_id, :user_id, :group_id, :amount, :start_time, :end_time, :name, :description,
|
||||
:composition_mode, :unweighted, :item_id
|
||||
:composition_mode, :unweighted, :item_id, :task_filter, :item_filter
|
||||
)
|
||||
`, &goal)
|
||||
if err != nil {
|
||||
@@ -97,7 +97,9 @@ func (r *goalRepository) Update(ctx context.Context, goal models.Goal) error {
|
||||
description=:description,
|
||||
composition_mode=:composition_mode,
|
||||
unweighted=:unweighted,
|
||||
item_id=:item_id
|
||||
item_id=:item_id,
|
||||
task_filter=:task_filter,
|
||||
item_filter=:item_filter
|
||||
WHERE goal_id=:goal_id
|
||||
`, &goal)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user