This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user