Change key name

This commit is contained in:
Michael Jackson 2016-04-12 05:22:00 -07:00
parent dd04ece3d0
commit 2f5f4169a5
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ const requestLogging = (redisURL) => {
const path = req.path
if (res.statusCode === 200 && path.charAt(path.length - 1) !== '/') {
redisClient.zincrby([ 'requests', 1, path ])
redisClient.zincrby([ 'request-paths', 1, path ])
const packageSpec = path.split('/')[1]
const atIndex = packageSpec.lastIndexOf('@')