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

warren 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 6b07a036a fix: pagerduty created after time fix (#5042)
6b07a036a is described below

commit 6b07a036a80a6be160d6afb7273bdfcd5a0578d6
Author: Keon Amini <[email protected]>
AuthorDate: Thu Apr 27 05:24:19 2023 -0500

    fix: pagerduty created after time fix (#5042)
---
 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 856edbbad..883f071bf 100644
--- a/backend/plugins/pagerduty/tasks/incidents_collector.go
+++ b/backend/plugins/pagerduty/tasks/incidents_collector.go
@@ -92,7 +92,7 @@ func CollectIncidents(taskCtx plugin.SubTaskContext) 
errors.Error {
                                                        query.Set("date_range", 
"all")
                                                } else {
                                                        // since for PagerDuty 
is actually the created_at time of the incident (this is not well documented in 
their APIs)
-                                                       query.Set("since", 
data.TimeAfter.String())
+                                                       query.Set("since", 
createdAfter.String())
                                                }
                                        } else {
                                                query.Set("date_range", "all")

Reply via email to