Browse Source

fix bug on FindExternalUsersByProvider (#8504)

for-closed-social
Lunny Xiao 5 years ago
committed by zeripath
parent
commit
f9aba9ba0f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/external_login_user.go

+ 1
- 1
models/external_login_user.go View File

@ -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…
Cancel
Save