diff options
Diffstat (limited to 'app/services/projects/operations')
-rw-r--r-- | app/services/projects/operations/update_service.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/projects/operations/update_service.rb b/app/services/projects/operations/update_service.rb index c0734171ee5..2cc6bcdf57c 100644 --- a/app/services/projects/operations/update_service.rb +++ b/app/services/projects/operations/update_service.rb @@ -102,10 +102,10 @@ module Projects def prometheus_integration_params return {} unless attrs = params[:prometheus_integration_attributes] - service = project.find_or_initialize_service(::PrometheusService.to_param) - service.assign_attributes(attrs) + integration = project.find_or_initialize_integration(::Integrations::Prometheus.to_param) + integration.assign_attributes(attrs) - { prometheus_service_attributes: service.attributes.except(*%w(id project_id created_at updated_at)) } + { prometheus_integration_attributes: integration.attributes.except(*%w[id project_id created_at updated_at]) } end def incident_management_setting_params |