Browse Source

fix bug user search API pagesize didn't obey ExplorePagingNum (#6579)

tags/v1.9.0-rc1
Lunny Xiao 5 years ago
parent
commit
1b7dffc3a3
1 changed files with 0 additions and 3 deletions
  1. 0
    3
      routers/api/v1/user/user.go

+ 0
- 3
routers/api/v1/user/user.go View File

Type: models.UserTypeIndividual, Type: models.UserTypeIndividual,
PageSize: com.StrTo(ctx.Query("limit")).MustInt(), PageSize: com.StrTo(ctx.Query("limit")).MustInt(),
} }
if opts.PageSize <= 0 {
opts.PageSize = 10
}


users, _, err := models.SearchUsers(opts) users, _, err := models.SearchUsers(opts)
if err != nil { if err != nil {

Loading…
Cancel
Save