From c22dda2bed94b39fa5fdaed3843e1c8ba91492b9 Mon Sep 17 00:00:00 2001 From: Aiden Luo Date: Tue, 26 Jun 2018 13:41:20 +0800 Subject: [PATCH] update max pagination size to 100 --- common/request.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/request.go b/common/request.go index f35c2990..76086e8c 100644 --- a/common/request.go +++ b/common/request.go @@ -83,9 +83,9 @@ func (p *Pagination) Validate() { if p.PageSize < 0 { log.Printf("Invalid PageSize: %d", p.PageSize) p.PageSize = 10 - } else if p.PageSize > 50 { + } else if p.PageSize > 100 { log.Printf("Invalid PageSize: %d", p.PageSize) - p.PageSize = 50 + p.PageSize = 100 } }