discourse/app/jobs/scheduled/purge_old_web_hook_events.rb

10 lines
143 B
Ruby
Raw Normal View History

module Jobs
class PurgeOldWebHookEvents < Jobs::Scheduled
every 1.day
def execute(_)
WebHookEvent.purge_old
end
end
end