Add a setting for maximum age of events
This commit is contained in:
@@ -15,4 +15,9 @@ class Setting < ApplicationRecord
|
||||
def self.ipapi_key
|
||||
get('ipapi_key', ENV['IPAPI_KEY'])
|
||||
end
|
||||
|
||||
# Convenience method for event retention days (default: 90 days)
|
||||
def self.event_retention_days
|
||||
get('event_retention_days', '90').to_i
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user