]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/extra-utils/users/blocklist-command.ts
Increase timeout
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / users / blocklist-command.ts
index 96afdc3fd5fa7f3254cc9d8111efaf06c7d31fe3..14491a1aee596c744b8b88f8f21f538f7903ebcc 100644 (file)
@@ -1,7 +1,6 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
-import { HttpStatusCode } from '@shared/core-utils'
-import { AccountBlock, ResultList, ServerBlock } from '@shared/models'
+import { AccountBlock, HttpStatusCode, ResultList, ServerBlock } from '@shared/models'
 import { AbstractCommand, OverrideCommandOptions } from '../shared'
 
 type ListBlocklistOptions = OverrideCommandOptions & {
@@ -56,6 +55,7 @@ export class BlocklistCommand extends AbstractCommand {
         accountName: account,
         host: server
       },
+      implicitToken: true,
       defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
     })
   }
@@ -78,6 +78,7 @@ export class BlocklistCommand extends AbstractCommand {
         accountName: account,
         host: server
       },
+      implicitToken: true,
       defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
     })
   }
@@ -98,6 +99,7 @@ export class BlocklistCommand extends AbstractCommand {
       ...options,
 
       path,
+      implicitToken: true,
       defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
     })
   }
@@ -116,6 +118,7 @@ export class BlocklistCommand extends AbstractCommand {
       ...options,
 
       path,
+      implicitToken: true,
       defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
     })
   }
@@ -128,6 +131,7 @@ export class BlocklistCommand extends AbstractCommand {
 
       path,
       query: { start, count, sort },
+      implicitToken: true,
       defaultExpectedStatus: HttpStatusCode.OK_200
     })
   }