From 1891ce62d502a67bfb40b19279933aee36975272 Mon Sep 17 00:00:00 2001 From: chiu Date: Sun, 22 Mar 2020 21:58:26 +0800 Subject: [PATCH] fix error --- app/controllers/admin/announcements_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/admin/announcements_controller.rb b/app/controllers/admin/announcements_controller.rb index 89b1f06..2ed68df 100644 --- a/app/controllers/admin/announcements_controller.rb +++ b/app/controllers/admin/announcements_controller.rb @@ -361,6 +361,7 @@ class Admin::AnnouncementsController < OrbitAdminController }, :is_sent=>is_sent ) + bulletin.email.deliver else bulletin.email.destroy if !bulletin.email.nil? end