mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
12 lines
No EOL
163 B
Ruby
12 lines
No EOL
163 B
Ruby
module Jobs
|
|
|
|
class CategoryStats < Jobs::Scheduled
|
|
recurrence { daily.hour_of_day(4) }
|
|
|
|
def execute(args)
|
|
Category.update_stats
|
|
end
|
|
|
|
end
|
|
|
|
end |