expose task sorting mode options to the user. No clue why anything but the status will be used, but why not.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -91,9 +91,9 @@ func (r *projectRepository) Insert(ctx context.Context, project models.Project)
|
||||
|
||||
_, err := r.db.NamedExecContext(ctx, `
|
||||
INSERT INTO project(
|
||||
project_id, user_id, project_group_id, name, description, icon, active, created_time, start_time, end_time, subtract_amount, status_tag, favorite, tags
|
||||
project_id, user_id, project_group_id, name, description, icon, active, created_time, start_time, end_time, subtract_amount, status_tag, favorite, tags, task_sort_fields
|
||||
) VALUES (
|
||||
:project_id, :user_id, :project_group_id, :name, :description, :icon, :active, :created_time, :start_time, :end_time, :subtract_amount, :status_tag, :favorite, :tags
|
||||
:project_id, :user_id, :project_group_id, :name, :description, :icon, :active, :created_time, :start_time, :end_time, :subtract_amount, :status_tag, :favorite, :tags, :task_sort_fields
|
||||
)
|
||||
`, toProjectDBO(project))
|
||||
if err != nil {
|
||||
@@ -120,7 +120,8 @@ func (r *projectRepository) Update(ctx context.Context, project models.Project)
|
||||
subtract_amount = :subtract_amount,
|
||||
status_tag = :status_tag,
|
||||
favorite = :favorite,
|
||||
tags = :tags
|
||||
tags = :tags,
|
||||
task_sort_fields = :task_sort_fields
|
||||
WHERE project_id=:project_id
|
||||
`, toProjectDBO(project))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user