We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e12be commit 5be1b7dCopy full SHA for 5be1b7d
routers/api/v1/user/user.go
@@ -55,9 +55,6 @@ func Search(ctx *context.APIContext) {
55
Type: models.UserTypeIndividual,
56
PageSize: com.StrTo(ctx.Query("limit")).MustInt(),
57
}
58
- if opts.PageSize <= 0 {
59
- opts.PageSize = 10
60
- }
61
62
users, _, err := models.SearchUsers(opts)
63
if err != nil {
0 commit comments