添加job任务
This commit is contained in:
parent
3db692dc39
commit
6b0432c04c
|
@ -202,5 +202,13 @@ END_DESC
|
|||
Mailer.run.send_for_user_activities(user, Date.today, 1)
|
||||
end
|
||||
end
|
||||
|
||||
desc "send a message for Job deadline"
|
||||
task :message => :environment do
|
||||
users = User.where(mail_notification: 'day')
|
||||
users.each do |user|
|
||||
Mailer.run.send_for_user_activities(user, Date.today, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue