aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment.service.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment.service.ts b/client/src/app/videos/+video-watch/comment/video-comment.service.ts
index 5b9a991a0..73526cb3e 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment.service.ts
+++ b/client/src/app/videos/+video-watch/comment/video-comment.service.ts
@@ -31,8 +31,8 @@ export class VideoCommentService {
31 31
32 return this.authHttp.post(url, normalizedComment) 32 return this.authHttp.post(url, normalizedComment)
33 .pipe( 33 .pipe(
34 map(data => this.extractVideoComment(data['comment'])), 34 map(data => this.extractVideoComment(data['comment'])),
35 catchError(this.restExtractor.handleError) 35 catchError(err => this.restExtractor.handleError(err))
36 ) 36 )
37 } 37 }
38 38
@@ -43,7 +43,7 @@ export class VideoCommentService {
43 return this.authHttp.post(url, normalizedComment) 43 return this.authHttp.post(url, normalizedComment)
44 .pipe( 44 .pipe(
45 map(data => this.extractVideoComment(data[ 'comment' ])), 45 map(data => this.extractVideoComment(data[ 'comment' ])),
46 catchError(this.restExtractor.handleError) 46 catchError(err => this.restExtractor.handleError(err))
47 ) 47 )
48 } 48 }
49 49
@@ -62,7 +62,7 @@ export class VideoCommentService {
62 .get(url, { params }) 62 .get(url, { params })
63 .pipe( 63 .pipe(
64 map(this.extractVideoComments), 64 map(this.extractVideoComments),
65 catchError((res) => this.restExtractor.handleError(res)) 65 catchError(err => this.restExtractor.handleError(err))
66 ) 66 )
67 } 67 }
68 68
@@ -73,7 +73,7 @@ export class VideoCommentService {
73 .get(url) 73 .get(url)
74 .pipe( 74 .pipe(
75 map(tree => this.extractVideoCommentTree(tree as VideoCommentThreadTree)), 75 map(tree => this.extractVideoCommentTree(tree as VideoCommentThreadTree)),
76 catchError((res) => this.restExtractor.handleError(res)) 76 catchError(err => this.restExtractor.handleError(err))
77 ) 77 )
78 } 78 }
79 79
@@ -84,7 +84,7 @@ export class VideoCommentService {
84 .delete(url) 84 .delete(url)
85 .pipe( 85 .pipe(
86 map(this.restExtractor.extractDataBool), 86 map(this.restExtractor.extractDataBool),
87 catchError((res) => this.restExtractor.handleError(res)) 87 catchError(err => this.restExtractor.handleError(err))
88 ) 88 )
89 } 89 }
90 90