about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-01-02 14:02:53 +0100
committerGitHub <noreply@github.com>2018-01-02 14:02:53 +0100
commit1419f656e2753dc2f173d496a9720023d89de36e (patch)
treea7d0ef12a87d42d6a7aaeca471f47a929d01e603
parent3ba7cde38df980a715a6607b254093246cc9ebbd (diff)
Fix stats expiring too quickly because of variable mistake (#6155)
-rw-r--r--app/lib/activity_tracker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activity_tracker.rb b/app/lib/activity_tracker.rb
index 50e927b0c..5b4972674 100644
--- a/app/lib/activity_tracker.rb
+++ b/app/lib/activity_tracker.rb
@@ -15,7 +15,7 @@ class ActivityTracker
       key = [prefix, current_week].join(':')
 
       redis.pfadd(key, value)
-      redis.expire(key, value)
+      redis.expire(key, EXPIRE_AFTER)
     end
 
     private