summaryrefslogtreecommitdiff
path: root/lib/tasks/ecs_garbage_collect_sub_participants.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/ecs_garbage_collect_sub_participants.rake')
-rw-r--r--lib/tasks/ecs_garbage_collect_sub_participants.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/ecs_garbage_collect_sub_participants.rake b/lib/tasks/ecs_garbage_collect_sub_participants.rake
index 046e36e..0067816 100644
--- a/lib/tasks/ecs_garbage_collect_sub_participants.rake
+++ b/lib/tasks/ecs_garbage_collect_sub_participants.rake
@@ -22,7 +22,7 @@ namespace :ecs do
ttl= ECS_CONFIG["participants"]["ttl_sub"]
num= 0
Participant.only_subparticipants.each do |p|
- if p.created_at <= ttl
+ if p.created_at <= ttl.days.ago
p.destroy
num+=1
end