demarches-normaliennes/app/jobs/update_administrateur_usage_statistics_job.rb

7 lines
198 B
Ruby

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