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

This commit is contained in:
2021-12-04 12:17:02 +01:00
parent 4451b6c3c1
commit c2d7806fd3
4 changed files with 17 additions and 4 deletions
+4 -3
View File
@@ -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 {