From e9f8a0f7c2e076da692c8d693dd5f8e3af647a33 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Cabral da Cunha Date: Sat, 26 Sep 2020 20:40:47 -0300 Subject: [PATCH] #333 fixing an error with empty attachments on asynchronous notifications --- lib/notifier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notifier.rb b/lib/notifier.rb index 1101bb9e..685afe2c 100644 --- a/lib/notifier.rb +++ b/lib/notifier.rb @@ -45,7 +45,7 @@ def self.send_emails(notifications) end messages = notifications[:notifications] - messages_attachments = notifications[:notifications_attachments] + messages_attachments = notifications[:notifications_attachments] || {} messages.each do |message| options = {}