This is an automated email from the ASF dual-hosted git repository.

zhangliang2022 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new a08e675ff fix(pagerduty): fix offset (#5032)
a08e675ff is described below

commit a08e675ff5a23382123a6fd4bd5d1e1a0524b766
Author: Warren Chen <[email protected]>
AuthorDate: Tue Apr 25 19:40:52 2023 +0800

    fix(pagerduty): fix offset (#5032)
---
 backend/plugins/pagerduty/tasks/incidents_collector.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/plugins/pagerduty/tasks/incidents_collector.go 
b/backend/plugins/pagerduty/tasks/incidents_collector.go
index baadcb163..856edbbad 100644
--- a/backend/plugins/pagerduty/tasks/incidents_collector.go
+++ b/backend/plugins/pagerduty/tasks/incidents_collector.go
@@ -99,7 +99,7 @@ func CollectIncidents(taskCtx plugin.SubTaskContext) 
errors.Error {
                                        }
                                        query.Set("sort_by", "created_at:desc")
                                        query.Set("limit", fmt.Sprintf("%d", 
reqData.Pager.Size))
-                                       query.Set("offset", fmt.Sprintf("%d", 
reqData.Pager.Page))
+                                       query.Set("offset", fmt.Sprintf("%d", 
reqData.Pager.Skip))
                                        query.Set("total", "true")
                                        return query, nil
                                },

Reply via email to