X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fserver-commands%2Fvideos%2Fvideo-stats-command.ts;h=b9b99bfb57ec0f9e2a9f140439e71e1ff5e8f081;hb=49f0468d44468528c2fb2c8b0efd19cdaeeec43d;hp=bd4808f63dc12e8501eab317baef4835c499c746;hpb=901bcf5c188ea79350fecd499ad76460b866617b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/server-commands/videos/video-stats-command.ts b/shared/server-commands/videos/video-stats-command.ts index bd4808f63..b9b99bfb5 100644 --- a/shared/server-commands/videos/video-stats-command.ts +++ b/shared/server-commands/videos/video-stats-command.ts @@ -6,6 +6,8 @@ export class VideoStatsCommand extends AbstractCommand { getOverallStats (options: OverrideCommandOptions & { videoId: number | string + startDate?: string + endDate?: string }) { const path = '/api/v1/videos/' + options.videoId + '/stats/overall' @@ -13,6 +15,8 @@ export class VideoStatsCommand extends AbstractCommand { ...options, path, + query: pick(options, [ 'startDate', 'endDate' ]), + implicitToken: true, defaultExpectedStatus: HttpStatusCode.OK_200 })