Skip to content

Commit

Permalink
Fix count
Browse files Browse the repository at this point in the history
  • Loading branch information
a632079 committed Apr 7, 2018
1 parent fb1f45d commit 3b197ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/countRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function countRequest () {
.catch(err => {
winston.error(err)
})
hosts[host] = !hosts[host] ? 0 : parseInt(hosts[host]) + 1
hosts[host] = hosts[host] === null ? 0 : parseInt(hosts[host]) + 1
cache.set('requests:hosts', hosts)
.catch(err => {
winston.error(err)
Expand Down

0 comments on commit 3b197ff

Please sign in to comment.