···4848 visitors.forEach((visitor, id, map) => {
4949 if (currentTime - visitor.visits[0] > 1000 * VISITOR_EXPIRY_SECONDS)
5050 map.delete(id)
5151- else
5151+ else {
5252 visitor.visits = visitor.visits.filter((since) => {
5353 return currentTime - since < 1000 * VISITOR_EXPIRY_SECONDS
5454 })
5555+ map.set(id, visitor)
5656+ }
5557 })
5658 // check whether the request is from a bot or not (this doesnt need to be accurate we just want to filter out honest bots)
5759 if (isBot(request)) { return visitors }