diff --git a/lib/tasks/reminder.rake b/lib/tasks/reminder.rake index 01e67bd0c7..50396db5cb 100644 --- a/lib/tasks/reminder.rake +++ b/lib/tasks/reminder.rake @@ -42,7 +42,7 @@ END_DESC namespace :redmine 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 end end