Skip to content

Commit

Permalink
Addresses the operator error in #896
Browse files Browse the repository at this point in the history
  • Loading branch information
augustf committed Mar 6, 2014
1 parent 1f9e925 commit 308b61e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cron.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module Clockwork
if RUBY_VERSION >= "1.9"
every(1.day, 'Remove old public activity entries') do
unless ConcertoConfig[:keep_activity_log].to_i == 0
activities = PublicActivity::Activity.where("created_at > :days", {:days => ConcertoConfig[:keep_activity_log].to_i.days.ago}).destroy_all
activities = PublicActivity::Activity.where("created_at < :days", {:days => ConcertoConfig[:keep_activity_log].to_i.days.ago}).destroy_all
end
end
end
Expand Down

0 comments on commit 308b61e

Please sign in to comment.