demarches-normaliennes/app/jobs/update_stats_job.rb
2020-10-06 16:12:01 +02:00

7 lines
129 B
Ruby

class UpdateStatsJob < CronJob
self.schedule_expression = "every 1 hour"
def perform(*args)
Stat.update_stats
end
end