summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/alert_management/update_alert_status.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/alert_management/update_alert_status.rb')
-rw-r--r--app/graphql/mutations/alert_management/update_alert_status.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/graphql/mutations/alert_management/update_alert_status.rb b/app/graphql/mutations/alert_management/update_alert_status.rb
index 1e14bae048a..74185dca529 100644
--- a/app/graphql/mutations/alert_management/update_alert_status.rb
+++ b/app/graphql/mutations/alert_management/update_alert_status.rb
@@ -9,9 +9,9 @@ module Mutations
required: true,
description: 'The status to set the alert'
- def resolve(args)
- alert = authorized_find!(project_path: args[:project_path], iid: args[:iid])
- result = update_status(alert, args[:status])
+ def resolve(project_path:, iid:, status:)
+ alert = authorized_find!(project_path: project_path, iid: iid)
+ result = update_status(alert, status)
track_usage_event(:incident_management_alert_status_changed, current_user.id)