Slack::Notifier::post (slack-notifier-2.3.1) returns an array of UserAgent::Result (#1878)
This commit is contained in:
parent
2f7f9bb183
commit
0afa283a20
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ class Transaction::Slack
|
||||||
result = notifier.ping result[:subject],
|
result = notifier.ping result[:subject],
|
||||||
attachments: [attachment]
|
attachments: [attachment]
|
||||||
end
|
end
|
||||||
if !result.success?
|
if !result.empty? && !result[0].success?
|
||||||
if sent_value
|
if sent_value
|
||||||
Cache.delete(cache_key)
|
Cache.delete(cache_key)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue