Просмотр исходного кода

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

tags/v1.9.0-rc1
Lunny Xiao 5 лет назад
Родитель
Сommit
1b7dffc3a3
1 измененных файлов: 0 добавлений и 3 удалений
  1. 0
    3
      routers/api/v1/user/user.go

+ 0
- 3
routers/api/v1/user/user.go Просмотреть файл

@@ -55,9 +55,6 @@ func Search(ctx *context.APIContext) {
Type: models.UserTypeIndividual,
PageSize: com.StrTo(ctx.Query("limit")).MustInt(),
}
if opts.PageSize <= 0 {
opts.PageSize = 10
}

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

Загрузка…
Отмена
Сохранить