Skip to content

Commit

Permalink
fix slack levels. #138
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Nov 15, 2018
1 parent 3cdef3d commit 3c84055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/concerns/mailable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3c84055

Please sign in to comment.