summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/alert_management/prometheus_integration/create.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/alert_management/prometheus_integration/create.rb')
-rw-r--r--app/graphql/mutations/alert_management/prometheus_integration/create.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/graphql/mutations/alert_management/prometheus_integration/create.rb b/app/graphql/mutations/alert_management/prometheus_integration/create.rb
index c6dc85dc07c..4d0a5a5cb13 100644
--- a/app/graphql/mutations/alert_management/prometheus_integration/create.rb
+++ b/app/graphql/mutations/alert_management/prometheus_integration/create.rb
@@ -23,7 +23,7 @@ module Mutations
def resolve(args)
project = authorized_find!(args[:project_path])
- return integration_exists if project.prometheus_service
+ return integration_exists if project.prometheus_integration
result = ::Projects::Operations::UpdateService.new(
project,
@@ -32,7 +32,7 @@ module Mutations
**token_attributes
).execute
- response(project.prometheus_service, result)
+ response(project.prometheus_integration, result)
end
private