]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/extra-utils/bulk/bulk.ts
Fix playlist position in my playlists
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / bulk / bulk.ts
CommitLineData
444c0a0e
C
1import { BulkRemoveCommentsOfBody } from "@shared/models/bulk/bulk-remove-comments-of-body.model"
2import { makePostBodyRequest } from "../requests/requests"
3
4function bulkRemoveCommentsOf (options: {
5 url: string
6 token: string
7 attributes: BulkRemoveCommentsOfBody
8 expectedStatus?: number
9}) {
10 const { url, token, attributes, expectedStatus } = options
11 const path = '/api/v1/bulk/remove-comments-of'
12
13 return makePostBodyRequest({
14 url,
15 path,
16 token,
17 fields: attributes,
18 statusCodeExpected: expectedStatus || 204
19 })
20}
21
22export {
23 bulkRemoveCommentsOf
24}