diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-03-30 12:06:46 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-03-31 10:29:24 +0200 |
commit | 3d527ba173a37bd61ec8ad742642bb320d12995c (patch) | |
tree | 4b2890df00b64ff6cdcf96afb652af8abcac3ff5 /shared/models/videos/channel | |
parent | 714bfcc556177dce2b65a1e58babdf2488e9de13 (diff) | |
download | PeerTube-3d527ba173a37bd61ec8ad742642bb320d12995c.tar.gz PeerTube-3d527ba173a37bd61ec8ad742642bb320d12995c.tar.zst PeerTube-3d527ba173a37bd61ec8ad742642bb320d12995c.zip |
Use inner join and document code for viewr stats for channels
Diffstat (limited to 'shared/models/videos/channel')
-rw-r--r-- | shared/models/videos/channel/video-channel.model.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/models/videos/channel/video-channel.model.ts b/shared/models/videos/channel/video-channel.model.ts index 5fe6609d9..421004e68 100644 --- a/shared/models/videos/channel/video-channel.model.ts +++ b/shared/models/videos/channel/video-channel.model.ts | |||
@@ -2,7 +2,7 @@ import { Actor } from '../../actors/actor.model' | |||
2 | import { Account } from '../../actors/index' | 2 | import { Account } from '../../actors/index' |
3 | import { Avatar } from '../../avatars' | 3 | import { Avatar } from '../../avatars' |
4 | 4 | ||
5 | export type viewsPerTime = { | 5 | export type ViewsPerDate = { |
6 | date: Date | 6 | date: Date |
7 | views: number | 7 | views: number |
8 | } | 8 | } |
@@ -13,7 +13,7 @@ export interface VideoChannel extends Actor { | |||
13 | support: string | 13 | support: string |
14 | isLocal: boolean | 14 | isLocal: boolean |
15 | ownerAccount?: Account | 15 | ownerAccount?: Account |
16 | viewsPerDay?: viewsPerTime[] // chronologically ordered | 16 | viewsPerDay?: ViewsPerDate[] // chronologically ordered |
17 | } | 17 | } |
18 | 18 | ||
19 | export interface VideoChannelSummary { | 19 | export interface VideoChannelSummary { |