poeti8 7 жил өмнө
parent
commit
82905d056e

+ 2 - 0
server/queues.ts

@@ -29,6 +29,8 @@ visitQueue.process(({ data }) => {
   const location = geoip.lookup(data.realIP);
   const location = geoip.lookup(data.realIP);
   const country = location && location.country;
   const country = location && location.country;
 
 
+  if (data.visit_count > getStatsLimit()) return;
+
   return Promise.all([
   return Promise.all([
     addLinkCount(data.link.id),
     addLinkCount(data.link.id),
     createVisit({
     createVisit({