Skip to content

Commit

Permalink
chore(be): sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Sep 28, 2024
1 parent 061806e commit c7177fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/sql/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (d *SqlDb) GetProjectUsers(projectID int, params db.RetrieveQueryParams) (u
case "name", "username", "email":
q = q.OrderBy("u." + params.SortBy + " " + sortDirection)
case "role":
q = q.OrderBy("pu." + params.SortBy + " " + sortDirection)
q = q.OrderBy("pu.role " + sortDirection)
default:
q = q.OrderBy("u.name " + sortDirection)
}
Expand Down

0 comments on commit c7177fa

Please sign in to comment.