diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-14 15:22:46 +0800 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-10-14 08:22:46 +0100 |
commit | f9aba9ba0f07b77cb46dde6eda3c3f5b8fa841fe (patch) | |
tree | 3c1c4aa828fffaca0f9d9394f5c52cddfe382cce /models/external_login_user.go | |
parent | e3e44a59d01da3af2be3a830f4a90394e7af4ff4 (diff) | |
download | gitea-f9aba9ba0f07b77cb46dde6eda3c3f5b8fa841fe.tar.gz gitea-f9aba9ba0f07b77cb46dde6eda3c3f5b8fa841fe.zip |
fix bug on FindExternalUsersByProvider (#8504)
Diffstat (limited to 'models/external_login_user.go')
-rw-r--r-- | models/external_login_user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/external_login_user.go b/models/external_login_user.go index 5058fd1b4b..59c3732184 100644 --- a/models/external_login_user.go +++ b/models/external_login_user.go @@ -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 |