Procházet zdrojové kódy

fix channel view counts

Klaudiusz Dembler před 4 roky
rodič
revize
9ca7d44215
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/aggregate.ts

+ 1 - 1
src/aggregate.ts

@@ -39,7 +39,7 @@ export class VideoAggregate {
     const currentChannelViews = this.channelViewsMap[event.channelId] || 0
     const currentChannelViews = this.channelViewsMap[event.channelId] || 0
 
 
     this.videoViewsMap[event.videoId] = currentVideoViews + 1
     this.videoViewsMap[event.videoId] = currentVideoViews + 1
-    this.channelViewsMap[event.videoId] = currentChannelViews + 1
+    this.channelViewsMap[event.channelId] = currentChannelViews + 1
   }
   }
 }
 }