summaryrefslogtreecommitdiff
path: root/app/controllers/projects/prometheus/alerts_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/prometheus/alerts_controller.rb')
-rw-r--r--app/controllers/projects/prometheus/alerts_controller.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/controllers/projects/prometheus/alerts_controller.rb b/app/controllers/projects/prometheus/alerts_controller.rb
index 8c74c730de9..2c0521edece 100644
--- a/app/controllers/projects/prometheus/alerts_controller.rb
+++ b/app/controllers/projects/prometheus/alerts_controller.rb
@@ -26,12 +26,9 @@ module Projects
def notify
token = extract_alert_manager_token(request)
+ result = notify_service.execute(token)
- if notify_service.execute(token)
- head :ok
- else
- head :unprocessable_entity
- end
+ head result.http_status
end
def create