From 3c840555f02afd8eebd3feac87f7185ae5e4c8c4 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 15 Nov 2018 01:37:33 +0100 Subject: [PATCH] fix slack levels. #138 --- app/models/concerns/mailable.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/mailable.rb b/app/models/concerns/mailable.rb index b75d05867..fef18bea2 100644 --- a/app/models/concerns/mailable.rb +++ b/app/models/concerns/mailable.rb @@ -38,7 +38,7 @@ def send_welcome_email { title: "Contact name", value: contact_name, short: true }, { title: "Contact email", value: contact_email, short: true } ] - User.send_notification_to_slack(nil, title: subject, level: "warning", fields: fields) + User.send_notification_to_slack(nil, title: subject, level: "good", fields: fields) response end @@ -56,7 +56,7 @@ def send_delete_email { title: "Contact name", value: contact_name, short: true }, { title: "Contact email", value: contact_email, short: true } ] - User.send_notification_to_slack(nil, title: subject, level: "good", fields: fields) + User.send_notification_to_slack(nil, title: subject, level: "warning", fields: fields) response end