Specs for cleanup workers (#3235)
* Add spec files for feed and media cleanup workers * Add coverage for feed and media cleanup schedulers * Clean up feed and media cleanup workers
This commit is contained in:
parent
4a4733b397
commit
ec34ec63b1
6 changed files with 39 additions and 2 deletions
|
@ -17,7 +17,7 @@ class Scheduler::FeedCleanupScheduler
|
|||
private
|
||||
|
||||
def inactive_users
|
||||
User.confirmed.where('current_sign_in_at < ?', 14.days.ago)
|
||||
User.confirmed.inactive
|
||||
end
|
||||
|
||||
def redis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue