Browse Source

Use named const instead of a raw string (#5115)

tags/v1.7.0-dev
Oleg Kovalov Lunny Xiao 7 years ago
parent
commit
0d153680c9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/user.go

+ 1
- 1
models/user.go View File

@@ -1380,7 +1380,7 @@ func SearchUsers(opts *SearchUserOptions) (users []*User, _ int64, _ error) {
opts.Page = 1
}
if len(opts.OrderBy) == 0 {
opts.OrderBy = "name ASC"
opts.OrderBy = SearchOrderByAlphabetically
}

users = make([]*User, 0, opts.PageSize)


Loading…
Cancel
Save