discourse/app/jobs/scheduled/purge_old_web_hook_events.rb

12 lines
174 B
Ruby

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