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

This commit is contained in:
Eugen Rochko 2018-01-02 14:02:53 +01:00 committed by GitHub
parent 3ba7cde38d
commit 1419f656e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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