From 0908194adb4b4d81575a9ce58ae123a794d79a72 Mon Sep 17 00:00:00 2001 From: Subomi Oluwalana Date: Thu, 17 Oct 2024 21:10:56 +0100 Subject: [PATCH] fix(chore): fixed wrong behavior for perPage pagination --- convoy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convoy.go b/convoy.go index b11a7aa..a542af5 100644 --- a/convoy.go +++ b/convoy.go @@ -28,7 +28,7 @@ type Pagination struct { // ListParams is used in requests for filtering lists type ListParams struct { - PerPage int `url:"perPage"` + PerPage int `url:"perPage,omitempty"` PrevPageCursor string `url:"prev_page_cursor"` NextPageCursor string `url:"next_page_cursor"` }