fix error

This commit is contained in:
chiu 2020-03-22 21:58:26 +08:00
parent 23abca1d4d
commit 1891ce62d5
1 changed files with 1 additions and 0 deletions

View File

@ -361,6 +361,7 @@ class Admin::AnnouncementsController < OrbitAdminController
},
:is_sent=>is_sent
)
bulletin.email.deliver
else
bulletin.email.destroy if !bulletin.email.nil?
end