From 3d527ba173a37bd61ec8ad742642bb320d12995c Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 30 Mar 2020 12:06:46 +0200 Subject: Use inner join and document code for viewr stats for channels --- shared/models/videos/channel/video-channel.model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shared') 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' 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 { -- cgit v1.2.3