Browse Source

fix channel view counts

Klaudiusz Dembler 4 years ago
parent
commit
9ca7d44215
1 changed files with 1 additions and 1 deletions
  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
   }
 }