fix: add ORDER BY to ListUsers query for deterministic ordering
The query had no ORDER BY clause, causing non-deterministic result ordering on PostgreSQL where row order is not guaranteed.
This commit is contained in:
parent
a2e19f8d38
commit
39e16653aa
|
|
@ -149,6 +149,7 @@ func ListUsers(s *xorm.Session, search string, currentUser *User, opts *ProjectU
|
|||
|
||||
err = s.
|
||||
Where(cond).
|
||||
OrderBy("id").
|
||||
Find(&users)
|
||||
|
||||
outer:
|
||||
|
|
|
|||
Loading…
Reference in New Issue