]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/extra-utils/overviews/overviews-command.ts
Specify if we want to fallback to the server token
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / overviews / overviews-command.ts
index 6f56b0ce481ff586e22246944eef4cddc25dc08f..e15644d9426cb7c5a980f8ef2833fa4067c3a7c3 100644 (file)
@@ -7,7 +7,7 @@ export class OverviewsCommand extends AbstractCommand {
   getVideos (options: OverrideCommandOptions & {
     page: number
   }) {
-    const { token, page } = options
+    const { page } = options
     const path = '/api/v1/overviews/videos'
 
     const query = { page }
@@ -15,9 +15,9 @@ export class OverviewsCommand extends AbstractCommand {
     return this.getRequestBody<VideosOverview>({
       ...options,
 
-      token: token || null,
       path,
       query,
+      implicitToken: false,
       defaultExpectedStatus: HttpStatusCode.OK_200
     })
   }