diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-06 10:22:37 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:16 +0200 |
commit | f59545d97a80bf06025bf6343a80d834c7eb237f (patch) | |
tree | 7ed34f26b94964e8e707504da5fb90ff9d7486ad /shared/extra-utils/bulk/bulk.ts | |
parent | c1bc8ee4783d6ce3102524e6c2a02b2f0f6aab6d (diff) | |
download | PeerTube-f59545d97a80bf06025bf6343a80d834c7eb237f.tar.gz PeerTube-f59545d97a80bf06025bf6343a80d834c7eb237f.tar.zst PeerTube-f59545d97a80bf06025bf6343a80d834c7eb237f.zip |
Rename command files
Diffstat (limited to 'shared/extra-utils/bulk/bulk.ts')
-rw-r--r-- | shared/extra-utils/bulk/bulk.ts | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/shared/extra-utils/bulk/bulk.ts b/shared/extra-utils/bulk/bulk.ts deleted file mode 100644 index a58fb3fbb..000000000 --- a/shared/extra-utils/bulk/bulk.ts +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | |||
2 | import { BulkRemoveCommentsOfBody } from '@shared/models/bulk/bulk-remove-comments-of-body.model' | ||
3 | import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes' | ||
4 | import { AbstractCommand, OverrideCommandOptions } from '../shared' | ||
5 | |||
6 | export class BulkCommand extends AbstractCommand { | ||
7 | |||
8 | removeCommentsOf (options: OverrideCommandOptions & { | ||
9 | attributes: BulkRemoveCommentsOfBody | ||
10 | }) { | ||
11 | const { attributes } = options | ||
12 | |||
13 | return this.postBodyRequest({ | ||
14 | ...options, | ||
15 | path: '/api/v1/bulk/remove-comments-of', | ||
16 | fields: attributes, | ||
17 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 | ||
18 | }) | ||
19 | } | ||
20 | } | ||