mirror of https://github.com/go-gitea/gitea.git
fix bug on FindExternalUsersByProvider (#8504)
This commit is contained in:
parent
e3e44a59d0
commit
f9aba9ba0f
|
@ -159,7 +159,7 @@ func FindExternalUsersByProvider(opts FindExternalUserOptions) ([]ExternalLoginU
|
||||||
var users []ExternalLoginUser
|
var users []ExternalLoginUser
|
||||||
err := x.Where(opts.toConds()).
|
err := x.Where(opts.toConds()).
|
||||||
Limit(opts.Limit, opts.Start).
|
Limit(opts.Limit, opts.Start).
|
||||||
Asc("id").
|
OrderBy("login_source_id ASC, external_id ASC").
|
||||||
Find(&users)
|
Find(&users)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue