add project groups to frontend.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-07-18 22:11:16 +02:00
parent ea01af1091
commit 83eb9862fc
29 changed files with 524 additions and 64 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func (r *projectGroupRepository) Find(ctx context.Context, id string) (*models.P
func (r *projectGroupRepository) List(ctx context.Context, filter models.ProjectGroupFilter) ([]*models.ProjectGroup, error) {
res := make([]*projectGroupDBO, 0, 16)
err := r.db.SelectContext(ctx, &res, "SELECT * FROM project_group WHERE user_id=$1", filter.UserID)
err := r.db.SelectContext(ctx, &res, "SELECT * FROM project_group WHERE user_id=$1 ORDER BY abbreviation", filter.UserID)
if err != nil {
if err == sql.ErrNoRows {
return []*models.ProjectGroup{}, nil