diff options
Diffstat (limited to 'client/src/app/shared')
3 files changed, 10 insertions, 10 deletions
diff --git a/client/src/app/shared/shared-main/video-caption/video-caption.service.ts b/client/src/app/shared/shared-main/video-caption/video-caption.service.ts index 00ebe5bc6..0f3afd116 100644 --- a/client/src/app/shared/shared-main/video-caption/video-caption.service.ts +++ b/client/src/app/shared/shared-main/video-caption/video-caption.service.ts | |||
@@ -18,7 +18,7 @@ export class VideoCaptionService { | |||
18 | private restExtractor: RestExtractor | 18 | private restExtractor: RestExtractor |
19 | ) {} | 19 | ) {} |
20 | 20 | ||
21 | listCaptions (videoId: number | string): Observable<ResultList<VideoCaption>> { | 21 | listCaptions (videoId: string): Observable<ResultList<VideoCaption>> { |
22 | return this.authHttp.get<ResultList<VideoCaption>>(`${VideoService.BASE_VIDEO_URL}/${videoId}/captions`) | 22 | return this.authHttp.get<ResultList<VideoCaption>>(`${VideoService.BASE_VIDEO_URL}/${videoId}/captions`) |
23 | .pipe( | 23 | .pipe( |
24 | switchMap(captionsResult => { | 24 | switchMap(captionsResult => { |
diff --git a/client/src/app/shared/shared-main/video/video.service.ts b/client/src/app/shared/shared-main/video/video.service.ts index 83bc4eeb6..7810c4303 100644 --- a/client/src/app/shared/shared-main/video/video.service.ts +++ b/client/src/app/shared/shared-main/video/video.service.ts | |||
@@ -338,19 +338,19 @@ export class VideoService { | |||
338 | ) | 338 | ) |
339 | } | 339 | } |
340 | 340 | ||
341 | setVideoLike (id: number) { | 341 | setVideoLike (id: string) { |
342 | return this.setVideoRate(id, 'like') | 342 | return this.setVideoRate(id, 'like') |
343 | } | 343 | } |
344 | 344 | ||
345 | setVideoDislike (id: number) { | 345 | setVideoDislike (id: string) { |
346 | return this.setVideoRate(id, 'dislike') | 346 | return this.setVideoRate(id, 'dislike') |
347 | } | 347 | } |
348 | 348 | ||
349 | unsetVideoLike (id: number) { | 349 | unsetVideoLike (id: string) { |
350 | return this.setVideoRate(id, 'none') | 350 | return this.setVideoRate(id, 'none') |
351 | } | 351 | } |
352 | 352 | ||
353 | getUserVideoRating (id: number) { | 353 | getUserVideoRating (id: string) { |
354 | const url = UserService.BASE_USERS_URL + 'me/videos/' + id + '/rating' | 354 | const url = UserService.BASE_USERS_URL + 'me/videos/' + id + '/rating' |
355 | 355 | ||
356 | return this.authHttp.get<UserVideoRate>(url) | 356 | return this.authHttp.get<UserVideoRate>(url) |
@@ -466,7 +466,7 @@ export class VideoService { | |||
466 | } | 466 | } |
467 | } | 467 | } |
468 | 468 | ||
469 | private setVideoRate (id: number, rateType: UserVideoRateType) { | 469 | private setVideoRate (id: string, rateType: UserVideoRateType) { |
470 | const url = `${VideoService.BASE_VIDEO_URL}/${id}/rate` | 470 | const url = `${VideoService.BASE_VIDEO_URL}/${id}/rate` |
471 | const body: UserVideoRateUpdate = { | 471 | const body: UserVideoRateUpdate = { |
472 | rating: rateType | 472 | rating: rateType |
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 |