af83/chouette-core

View on GitHub
app/jobs/cron/check_nightly_aggregates_job.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Cron
  class CheckNightlyAggregatesJob < MinutesJob
    def perform_once
      ::Workgroup.where(nightly_aggregate_enabled: true).find_each(&:nightly_aggregate!)
    end
  end
end