mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:35:14 +08:00
10 lines
188 B
Ruby
10 lines
188 B
Ruby
module Jobs
|
|
class PurgeExpiredIgnoredUsers < Jobs::Scheduled
|
|
every 1.day
|
|
|
|
def execute(args)
|
|
IgnoredUser.where("created_at <= ?", 4.months.ago).delete_all
|
|
end
|
|
end
|
|
end
|