Update reminder rake task to properly call DueIssuesReminder

pull/7700/head
Wieland Lindenthal 5 years ago
parent 57bb6f602c
commit 84ae2be994
  1. 2
      lib/tasks/reminder.rake

@ -42,7 +42,7 @@ END_DESC
namespace :redmine do namespace :redmine do
task send_reminders: :environment do task send_reminders: :environment do
reminder = DueIssuesReminder.new(ENV['days'], ENV['project'], ENV['type'], ENV['users'].to_s.split(',').map(&:to_i)) reminder = OpenProject::Reminders::DueIssuesReminder.new(days: ENV['days'], project_id: ENV['project'], type_id: ENV['type'], user_ids: ENV['users'].to_s.split(',').map(&:to_i))
reminder.remind_users reminder.remind_users
end end
end end

Loading…
Cancel
Save