Browse Source

Fix stats expiring too quickly because of variable mistake (#6155)

Eugen Rochko 1 year ago
parent
commit
1419f656e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/lib/activity_tracker.rb

+ 1 - 1
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