aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/users
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/users')
-rw-r--r--client/src/app/shared/users/user.service.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/shared/users/user.service.ts b/client/src/app/shared/users/user.service.ts
index 9fe6c8b60..365a21df7 100644
--- a/client/src/app/shared/users/user.service.ts
+++ b/client/src/app/shared/users/user.service.ts
@@ -25,7 +25,7 @@ export class UserService {
25 return this.authHttp.put(url, body) 25 return this.authHttp.put(url, body)
26 .pipe( 26 .pipe(
27 map(this.restExtractor.extractDataBool), 27 map(this.restExtractor.extractDataBool),
28 catchError(res => this.restExtractor.handleError(res)) 28 catchError(err => this.restExtractor.handleError(err))
29 ) 29 )
30 } 30 }
31 31
@@ -35,7 +35,7 @@ export class UserService {
35 return this.authHttp.put(url, profile) 35 return this.authHttp.put(url, profile)
36 .pipe( 36 .pipe(
37 map(this.restExtractor.extractDataBool), 37 map(this.restExtractor.extractDataBool),
38 catchError(res => this.restExtractor.handleError(res)) 38 catchError(err => this.restExtractor.handleError(err))
39 ) 39 )
40 } 40 }
41 41
@@ -43,14 +43,14 @@ export class UserService {
43 const url = UserService.BASE_USERS_URL + 'me/avatar/pick' 43 const url = UserService.BASE_USERS_URL + 'me/avatar/pick'
44 44
45 return this.authHttp.post<{ avatar: Avatar }>(url, avatarForm) 45 return this.authHttp.post<{ avatar: Avatar }>(url, avatarForm)
46 .pipe(catchError(this.restExtractor.handleError)) 46 .pipe(catchError(err => this.restExtractor.handleError(err)))
47 } 47 }
48 48
49 signup (userCreate: UserCreate) { 49 signup (userCreate: UserCreate) {
50 return this.authHttp.post(UserService.BASE_USERS_URL + 'register', userCreate) 50 return this.authHttp.post(UserService.BASE_USERS_URL + 'register', userCreate)
51 .pipe( 51 .pipe(
52 map(this.restExtractor.extractDataBool), 52 map(this.restExtractor.extractDataBool),
53 catchError(res => this.restExtractor.handleError(res)) 53 catchError(err => this.restExtractor.handleError(err))
54 ) 54 )
55 } 55 }
56 56
@@ -58,7 +58,7 @@ export class UserService {
58 const url = UserService.BASE_USERS_URL + '/me/video-quota-used' 58 const url = UserService.BASE_USERS_URL + '/me/video-quota-used'
59 59
60 return this.authHttp.get<UserVideoQuota>(url) 60 return this.authHttp.get<UserVideoQuota>(url)
61 .pipe(catchError(res => this.restExtractor.handleError(res))) 61 .pipe(catchError(err => this.restExtractor.handleError(err)))
62 } 62 }
63 63
64 askResetPassword (email: string) { 64 askResetPassword (email: string) {
@@ -67,7 +67,7 @@ export class UserService {
67 return this.authHttp.post(url, { email }) 67 return this.authHttp.post(url, { email })
68 .pipe( 68 .pipe(
69 map(this.restExtractor.extractDataBool), 69 map(this.restExtractor.extractDataBool),
70 catchError(res => this.restExtractor.handleError(res)) 70 catchError(err => this.restExtractor.handleError(err))
71 ) 71 )
72 } 72 }
73 73