diff options
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/incident_management/process_alert_worker.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/workers/incident_management/process_alert_worker.rb b/app/workers/incident_management/process_alert_worker.rb index 2ce9fe359b5..0af34fa35d5 100644 --- a/app/workers/incident_management/process_alert_worker.rb +++ b/app/workers/incident_management/process_alert_worker.rb @@ -12,7 +12,7 @@ module IncidentManagement return unless project new_issue = create_issue(project, alert_payload) - return unless am_alert_id && new_issue.persisted? + return unless am_alert_id && new_issue&.persisted? link_issue_with_alert(am_alert_id, new_issue.id) end @@ -27,6 +27,7 @@ module IncidentManagement IncidentManagement::CreateIssueService .new(project, alert_payload) .execute + .dig(:issue) end def link_issue_with_alert(alert_id, issue_id) |