Remove unused task to send dashboard notifications

This task was "temporarily" removed in commit 7b6619528. Since that was
done three and a half years ago, right after the dashboard was
introduced, I think it's time to make this "temporary" measure a bit
more permanent ;).
This commit is contained in:
Javi Martín
2022-09-27 03:33:17 +02:00
parent 5719f32758
commit e221c3cd1a
10 changed files with 0 additions and 434 deletions

View File

@@ -1,18 +0,0 @@
namespace :dashboards do
desc "Send to user notifications from new actions availability on dashboard"
task send_notifications: :environment do
Proposal.not_archived.each do |proposal|
new_actions_ids = Dashboard::Action.detect_new_actions_since(Date.yesterday, proposal)
if new_actions_ids.present?
if proposal.published?
Dashboard::Mailer.delay.new_actions_notification_rake_published(proposal,
new_actions_ids)
else
Dashboard::Mailer.delay.new_actions_notification_rake_created(proposal,
new_actions_ids)
end
end
end
end
end