mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 23:39:56 +01:00
chore(be): sql query
This commit is contained in:
parent
061806e332
commit
c7177fac63
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user