aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/overviews
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-08 10:55:16 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commita1637fa1e25b60a88f7cfe50aac8953f50d55761 (patch)
tree4d0cc82eef618619a7bcb747812cc7b21e0d8776 /shared/extra-utils/overviews
parent04aed76711909507e74905bde3a7fa024d3585c9 (diff)
downloadPeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.tar.gz
PeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.tar.zst
PeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.zip
Specify if we want to fallback to the server token
Diffstat (limited to 'shared/extra-utils/overviews')
-rw-r--r--shared/extra-utils/overviews/overviews-command.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/overviews/overviews-command.ts b/shared/extra-utils/overviews/overviews-command.ts
index 6f56b0ce4..e15644d94 100644
--- a/shared/extra-utils/overviews/overviews-command.ts
+++ b/shared/extra-utils/overviews/overviews-command.ts
@@ -7,7 +7,7 @@ export class OverviewsCommand extends AbstractCommand {
7 getVideos (options: OverrideCommandOptions & { 7 getVideos (options: OverrideCommandOptions & {
8 page: number 8 page: number
9 }) { 9 }) {
10 const { token, page } = options 10 const { page } = options
11 const path = '/api/v1/overviews/videos' 11 const path = '/api/v1/overviews/videos'
12 12
13 const query = { page } 13 const query = { page }
@@ -15,9 +15,9 @@ export class OverviewsCommand extends AbstractCommand {
15 return this.getRequestBody<VideosOverview>({ 15 return this.getRequestBody<VideosOverview>({
16 ...options, 16 ...options,
17 17
18 token: token || null,
19 path, 18 path,
20 query, 19 query,
20 implicitToken: false,
21 defaultExpectedStatus: HttpStatusCode.OK_200 21 defaultExpectedStatus: HttpStatusCode.OK_200
22 }) 22 })
23 } 23 }