mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Rename command files
This commit is contained in:
parent
c1bc8ee478
commit
f59545d97a
10 changed files with 9 additions and 9 deletions
20
shared/extra-utils/bulk/bulk-command.ts
Normal file
20
shared/extra-utils/bulk/bulk-command.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
import { BulkRemoveCommentsOfBody } from '@shared/models/bulk/bulk-remove-comments-of-body.model'
|
||||
import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes'
|
||||
import { AbstractCommand, OverrideCommandOptions } from '../shared'
|
||||
|
||||
export class BulkCommand extends AbstractCommand {
|
||||
|
||||
removeCommentsOf (options: OverrideCommandOptions & {
|
||||
attributes: BulkRemoveCommentsOfBody
|
||||
}) {
|
||||
const { attributes } = options
|
||||
|
||||
return this.postBodyRequest({
|
||||
...options,
|
||||
path: '/api/v1/bulk/remove-comments-of',
|
||||
fields: attributes,
|
||||
defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
|
||||
})
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue