Change key name
This commit is contained in:
@ -18,7 +18,7 @@ const requestLogging = (redisURL) => {
|
|||||||
const path = req.path
|
const path = req.path
|
||||||
|
|
||||||
if (res.statusCode === 200 && path.charAt(path.length - 1) !== '/') {
|
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 packageSpec = path.split('/')[1]
|
||||||
const atIndex = packageSpec.lastIndexOf('@')
|
const atIndex = packageSpec.lastIndexOf('@')
|
||||||
|
Reference in New Issue
Block a user