From 0afa283a20a6bbe453bc715da7bade876efe3416 Mon Sep 17 00:00:00 2001 From: Jochen Hepp Date: Thu, 19 Apr 2018 08:04:23 +0200 Subject: [PATCH] Slack::Notifier::post (slack-notifier-2.3.1) returns an array of UserAgent::Result (#1878) --- app/models/transaction/slack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/transaction/slack.rb b/app/models/transaction/slack.rb index ae5ec7a95..300ba2d2d 100644 --- a/app/models/transaction/slack.rb +++ b/app/models/transaction/slack.rb @@ -181,7 +181,7 @@ class Transaction::Slack result = notifier.ping result[:subject], attachments: [attachment] end - if !result.success? + if !result.empty? && !result[0].success? if sent_value Cache.delete(cache_key) end