]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/job-queue/handlers/video-views.ts
Fix from header in contact form
[github/Chocobozzz/PeerTube.git] / server / lib / job-queue / handlers / video-views.ts
index 038ef43e2c7ea624aea5841c93e44567c44f39c1..fa1fd13b38da28b6080487b35f416120497fb976 100644 (file)
@@ -23,9 +23,7 @@ async function processVideosViews () {
   for (const videoId of videoIds) {
     try {
       const views = await Redis.Instance.getVideoViews(videoId, hour)
-      if (isNaN(views)) {
-        logger.error('Cannot process videos views of video %d in hour %d: views number is NaN (%s).', videoId, hour, views)
-      } else {
+      if (views) {
         logger.debug('Adding %d views to video %d in hour %d.', views, videoId, hour)
 
         try {