aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-21 13:58:35 +0200
committerChocobozzz <me@florianbigard.com>2021-07-21 13:58:35 +0200
commitc63830f15403ac4e750829f27d8bbbdc9a59282c (patch)
treef35048f1b2249bb3eec916964c084b1cd60f7bf3 /shared
parent4d029ef8ec3d5274eeaa3ee6d808eb7035e7faef (diff)
downloadPeerTube-c63830f15403ac4e750829f27d8bbbdc9a59282c.tar.gz
PeerTube-c63830f15403ac4e750829f27d8bbbdc9a59282c.tar.zst
PeerTube-c63830f15403ac4e750829f27d8bbbdc9a59282c.zip
Rename captions commands
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/videos/captions-command.ts6
-rw-r--r--shared/extra-utils/videos/comments-command.ts4
2 files changed, 5 insertions, 5 deletions
diff --git a/shared/extra-utils/videos/captions-command.ts b/shared/extra-utils/videos/captions-command.ts
index a0608e1a6..a65ea99e3 100644
--- a/shared/extra-utils/videos/captions-command.ts
+++ b/shared/extra-utils/videos/captions-command.ts
@@ -4,7 +4,7 @@ import { AbstractCommand, OverrideCommandOptions } from '../shared'
4 4
5export class CaptionsCommand extends AbstractCommand { 5export class CaptionsCommand extends AbstractCommand {
6 6
7 createVideoCaption (options: OverrideCommandOptions & { 7 add (options: OverrideCommandOptions & {
8 videoId: string | number 8 videoId: string | number
9 language: string 9 language: string
10 fixture: string 10 fixture: string
@@ -32,7 +32,7 @@ export class CaptionsCommand extends AbstractCommand {
32 }) 32 })
33 } 33 }
34 34
35 listVideoCaptions (options: OverrideCommandOptions & { 35 list (options: OverrideCommandOptions & {
36 videoId: string | number 36 videoId: string | number
37 }) { 37 }) {
38 const { videoId } = options 38 const { videoId } = options
@@ -47,7 +47,7 @@ export class CaptionsCommand extends AbstractCommand {
47 }) 47 })
48 } 48 }
49 49
50 deleteVideoCaption (options: OverrideCommandOptions & { 50 delete (options: OverrideCommandOptions & {
51 videoId: string | number 51 videoId: string | number
52 language: string 52 language: string
53 }) { 53 }) {
diff --git a/shared/extra-utils/videos/comments-command.ts b/shared/extra-utils/videos/comments-command.ts
index 5034c57ad..f0d163a07 100644
--- a/shared/extra-utils/videos/comments-command.ts
+++ b/shared/extra-utils/videos/comments-command.ts
@@ -84,7 +84,7 @@ export class CommentsCommand extends AbstractCommand {
84 defaultExpectedStatus: HttpStatusCode.OK_200 84 defaultExpectedStatus: HttpStatusCode.OK_200
85 })) 85 }))
86 86
87 this.lastThreadId = body.comment.id 87 this.lastThreadId = body.comment?.id
88 this.lastVideoId = videoId 88 this.lastVideoId = videoId
89 89
90 return body.comment 90 return body.comment
@@ -107,7 +107,7 @@ export class CommentsCommand extends AbstractCommand {
107 defaultExpectedStatus: HttpStatusCode.OK_200 107 defaultExpectedStatus: HttpStatusCode.OK_200
108 })) 108 }))
109 109
110 this.lastReplyId = body.comment.id 110 this.lastReplyId = body.comment?.id
111 111
112 return body.comment 112 return body.comment
113 } 113 }