app/commands/decidim/admin/destroy_newsletter.rb in decidim-admin-0.18.1 vs app/commands/decidim/admin/destroy_newsletter.rb in decidim-admin-0.19.0
- old
+ new
@@ -15,9 +15,10 @@
# Public: Executes the command.
#
# Broadcasts :ok if it got destroyed
def call
return broadcast(:already_sent) if newsletter.sent?
+
destroy_newsletter
broadcast(:ok)
end
private