Try different syntax
This commit is contained in:
parent
f3c5dcee2b
commit
5435b3c788
|
@ -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, req.path)
|
redisClient.zincrby([ 'requests', 1, req.path ])
|
||||||
})
|
})
|
||||||
|
|
||||||
next()
|
next()
|
||||||
|
|
Loading…
Reference in New Issue