[Fix #1907] set activation reminder delay to 3 days to allow administrateurs to activate their account with the original message after the weekend

This commit is contained in:
Mathieu Magnin 2018-05-03 18:31:05 +02:00
parent a2bbf1b4d6
commit dcdd431bc0

View file

@ -2,7 +2,7 @@ class Administrateurs::ActivateBeforeExpirationJob < ApplicationJob
queue_as :cron
def perform(*args)
Administrateur.inactive.where(created_at: 2.days.ago.all_day).each do |a|
Administrateur.inactive.where(created_at: 3.days.ago.all_day).each do |a|
a.remind_invitation!
end
end