diff options
Diffstat (limited to 'client/src/app/shared/shared-video-comment/video-comment.service.ts')
-rw-r--r-- | client/src/app/shared/shared-video-comment/video-comment.service.ts | 14 |
1 files changed, 7 insertions, 7 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 4f1452116..5550c96e4 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 | |||
@@ -37,8 +37,8 @@ export class VideoCommentService { | |||
37 | 37 | ||
38 | return this.authHttp.post<{ comment: VideoCommentServerModel }>(url, normalizedComment) | 38 | return this.authHttp.post<{ comment: VideoCommentServerModel }>(url, normalizedComment) |
39 | .pipe( | 39 | .pipe( |
40 | map(data => this.extractVideoComment(data.comment)), | 40 | map(data => this.extractVideoComment(data.comment)), |
41 | catchError(err => this.restExtractor.handleError(err)) | 41 | catchError(err => this.restExtractor.handleError(err)) |
42 | ) | 42 | ) |
43 | } | 43 | } |
44 | 44 | ||
@@ -54,8 +54,8 @@ export class VideoCommentService { | |||
54 | } | 54 | } |
55 | 55 | ||
56 | getAdminVideoComments (options: { | 56 | getAdminVideoComments (options: { |
57 | pagination: RestPagination, | 57 | pagination: RestPagination |
58 | sort: SortMeta, | 58 | sort: SortMeta |
59 | search?: string | 59 | search?: string |
60 | }): Observable<ResultList<VideoCommentAdmin>> { | 60 | }): Observable<ResultList<VideoCommentAdmin>> { |
61 | const { pagination, sort, search } = options | 61 | const { pagination, sort, search } = options |
@@ -75,8 +75,8 @@ export class VideoCommentService { | |||
75 | } | 75 | } |
76 | 76 | ||
77 | getVideoCommentThreads (parameters: { | 77 | getVideoCommentThreads (parameters: { |
78 | videoId: number | string, | 78 | videoId: number | string |
79 | componentPagination: ComponentPaginationLight, | 79 | componentPagination: ComponentPaginationLight |
80 | sort: string | 80 | sort: string |
81 | }): Observable<ThreadsResultList<VideoComment>> { | 81 | }): Observable<ThreadsResultList<VideoComment>> { |
82 | const { videoId, componentPagination, sort } = parameters | 82 | const { videoId, componentPagination, sort } = parameters |
@@ -95,7 +95,7 @@ export class VideoCommentService { | |||
95 | } | 95 | } |
96 | 96 | ||
97 | getVideoThreadComments (parameters: { | 97 | getVideoThreadComments (parameters: { |
98 | videoId: number | string, | 98 | videoId: number | string |
99 | threadId: number | 99 | threadId: number |
100 | }): Observable<VideoCommentThreadTree> { | 100 | }): Observable<VideoCommentThreadTree> { |
101 | const { videoId, threadId } = parameters | 101 | const { videoId, threadId } = parameters |