allow changing item on tasks with logs.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-04-03 14:21:39 +02:00
parent 0fd154227f
commit 2c5d87134d
3 changed files with 6 additions and 19 deletions
+5
View File
@@ -101,6 +101,11 @@ func (r *taskRepository) Update(ctx context.Context, task models.Task) error {
if err != nil {
return err
}
_, err = r.db.NamedExecContext(ctx, `UPDATE log SET item_id = :item_id WHERE task_id=:task_id`, &task)
if err != nil {
return err
}
return nil
}