0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-24 08:06:49 -05:00

fix bug on FindExternalUsersByProvider (#8504)

This commit is contained in:
Lunny Xiao 2019-10-14 15:22:46 +08:00 committed by zeripath
parent e3e44a59d0
commit f9aba9ba0f

View file

@ -159,7 +159,7 @@ func FindExternalUsersByProvider(opts FindExternalUserOptions) ([]ExternalLoginU
var users []ExternalLoginUser
err := x.Where(opts.toConds()).
Limit(opts.Limit, opts.Start).
Asc("id").
OrderBy("login_source_id ASC, external_id ASC").
Find(&users)
if err != nil {
return nil, err