Skip to content

Commit

Permalink
Merge pull request #215 from Netflix/bugfix/event-cleaner
Browse files Browse the repository at this point in the history
fixes event cleaner bug
  • Loading branch information
sbehrens authored Sep 18, 2017
2 parents 1adb4d8 + 6cbce7c commit 6be95fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/scumblr_tasks/maintenance_tasks/event_cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def initialize(options={})

def run

Event.where(user_id:nil).where('created_at < ?', Date.today - @days_to_keep.days).delete_all
Event.where(user_id:nil).where('created_at < ?', Date.today - @days_to_keep).delete_all
return []

end
end

0 comments on commit 6be95fa

Please sign in to comment.