2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-04-20 12:06:52 -04:00
|
|
|
module Jobs
|
|
|
|
class DirectoryRefreshOlder < Jobs::Scheduled
|
|
|
|
every 1.day
|
|
|
|
|
|
|
|
def execute(args)
|
|
|
|
periods = DirectoryItem.period_types.keys - [:daily]
|
2017-07-27 21:20:09 -04:00
|
|
|
periods.each { |p| DirectoryItem.refresh_period!(p) }
|
2015-04-20 12:06:52 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|