saucy/lib/tasks/saucy.rake

15 lines
367 B
Ruby
Raw Normal View History

2022-06-25 12:48:46 +00:00
desc "Application specific tasks"
namespace :saucy do
desc "Background sync operations"
task sync: :environment do
Member.generate_all_missing_ifthenpay_links!
Member.reset_all_status!
Member.regenerate_all_notifications
end
desc "Send daily email notifications"
task notify: :environment do
Notification.send_scheduled_for_today
end
end