|
|
|
@ -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 |
|
|
|
|