]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/videos/channel/video-channel.model.ts
Use inner join and document code for viewr stats for channels
[github/Chocobozzz/PeerTube.git] / shared / models / videos / channel / video-channel.model.ts
index 5fe6609d907275543c09268d6ca8f66ed66120d7..421004e68957881628d47853a5183c6184b00147 100644 (file)
@@ -2,7 +2,7 @@ import { Actor } from '../../actors/actor.model'
 import { Account } from '../../actors/index'
 import { Avatar } from '../../avatars'
 
-export type viewsPerTime = {
+export type ViewsPerDate = {
   date: Date
   views: number
 }
@@ -13,7 +13,7 @@ export interface VideoChannel extends Actor {
   support: string
   isLocal: boolean
   ownerAccount?: Account
-  viewsPerDay?: viewsPerTime[] // chronologically ordered
+  viewsPerDay?: ViewsPerDate[] // chronologically ordered
 }
 
 export interface VideoChannelSummary {