Explorar o código

fix channel view counts

Klaudiusz Dembler %!s(int64=4) %!d(string=hai) anos
pai
achega
9ca7d44215
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
   }
 }