mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-04 19:06:28 +00:00
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:
@@ -149,6 +149,7 @@ func ListUsers(s *xorm.Session, search string, currentUser *User, opts *ProjectU
|
||||
|
||||
err = s.
|
||||
Where(cond).
|
||||
OrderBy("id").
|
||||
Find(&users)
|
||||
|
||||
outer:
|
||||
|
||||
Reference in New Issue
Block a user