Pārlūkot izejas kodu

fix channel view counts

Klaudiusz Dembler 4 gadi atpakaļ
vecāks
revīzija
9ca7d44215
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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
 
     this.videoViewsMap[event.videoId] = currentVideoViews + 1
-    this.channelViewsMap[event.videoId] = currentChannelViews + 1
+    this.channelViewsMap[event.channelId] = currentChannelViews + 1
   }
 }