demarches-normaliennes/app/jobs/cron/update_stats_job.rb
2024-08-22 09:26:48 +02:00

9 lines
172 B
Ruby

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