Commit 62da6ef6 authored by Tiago Botelho's avatar Tiago Botelho

Removes name reference from alert fired email subject and replaces it by the title attribute

parent 681f2ee5
......@@ -32,7 +32,7 @@ module Emails
user = User.find_by(id: user_id)
return unless user
subject_text = "Alert: #{@environment.name} - #{@alert.name} #{@alert.computed_operator} #{@alert.threshold} for 5 minutes"
subject_text = "Alert: #{@environment.name} - #{@alert.title} #{@alert.computed_operator} #{@alert.threshold} for 5 minutes"
mail(to: user.notification_email, subject: subject(subject_text))
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment