diff options
Diffstat (limited to 'client/src/app/shared/shared-video-comment')
-rw-r--r-- | client/src/app/shared/shared-video-comment/video-comment.service.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-video-comment/video-comment.service.ts b/client/src/app/shared/shared-video-comment/video-comment.service.ts index 6f2ef50cb..8cd94643a 100644 --- a/client/src/app/shared/shared-video-comment/video-comment.service.ts +++ b/client/src/app/shared/shared-video-comment/video-comment.service.ts | |||
@@ -31,7 +31,7 @@ export class VideoCommentService { | |||
31 | private restService: RestService | 31 | private restService: RestService |
32 | ) {} | 32 | ) {} |
33 | 33 | ||
34 | addCommentThread (videoId: number | string, comment: VideoCommentCreate) { | 34 | addCommentThread (videoId: string, comment: VideoCommentCreate) { |
35 | const url = VideoCommentService.BASE_VIDEO_URL + videoId + '/comment-threads' | 35 | const url = VideoCommentService.BASE_VIDEO_URL + videoId + '/comment-threads' |
36 | const normalizedComment = objectLineFeedToHtml(comment, 'text') | 36 | const normalizedComment = objectLineFeedToHtml(comment, 'text') |
37 | 37 | ||
@@ -42,7 +42,7 @@ export class VideoCommentService { | |||
42 | ) | 42 | ) |
43 | } | 43 | } |
44 | 44 | ||
45 | addCommentReply (videoId: number | string, inReplyToCommentId: number, comment: VideoCommentCreate) { | 45 | addCommentReply (videoId: string, inReplyToCommentId: number, comment: VideoCommentCreate) { |
46 | const url = VideoCommentService.BASE_VIDEO_URL + videoId + '/comments/' + inReplyToCommentId | 46 | const url = VideoCommentService.BASE_VIDEO_URL + videoId + '/comments/' + inReplyToCommentId |
47 | const normalizedComment = objectLineFeedToHtml(comment, 'text') | 47 | const normalizedComment = objectLineFeedToHtml(comment, 'text') |
48 | 48 | ||
@@ -75,7 +75,7 @@ export class VideoCommentService { | |||
75 | } | 75 | } |
76 | 76 | ||
77 | getVideoCommentThreads (parameters: { | 77 | getVideoCommentThreads (parameters: { |
78 | videoId: number | string | 78 | videoId: string |
79 | componentPagination: ComponentPaginationLight | 79 | componentPagination: ComponentPaginationLight |
80 | sort: string | 80 | sort: string |
81 | }): Observable<ThreadsResultList<VideoComment>> { | 81 | }): Observable<ThreadsResultList<VideoComment>> { |
@@ -95,7 +95,7 @@ export class VideoCommentService { | |||
95 | } | 95 | } |
96 | 96 | ||
97 | getVideoThreadComments (parameters: { | 97 | getVideoThreadComments (parameters: { |
98 | videoId: number | string | 98 | videoId: string |
99 | threadId: number | 99 | threadId: number |
100 | }): Observable<VideoCommentThreadTree> { | 100 | }): Observable<VideoCommentThreadTree> { |
101 | const { videoId, threadId } = parameters | 101 | const { videoId, threadId } = parameters |