demarches-normaliennes/app/jobs/cron/update_administrateur_usage_statistics_job.rb

8 lines
210 B
Ruby
Raw Normal View History

class Cron::UpdateAdministrateurUsageStatisticsJob < Cron::CronJob
self.schedule_expression = "every day at 10 am"
def perform
AdministrateurUsageStatisticsService.new.update_administrateurs
end
end