mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Retain the latest 30 days of WebHookEvent records by default.
This commit is contained in:
9
app/jobs/scheduled/purge_old_web_hook_events.rb
Normal file
9
app/jobs/scheduled/purge_old_web_hook_events.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module Jobs
|
||||
class PurgeOldWebHookEvents < Jobs::Scheduled
|
||||
every 1.week
|
||||
|
||||
def execute(_)
|
||||
WebHookEvent.purge_old
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user