|
|
@ -62,6 +62,7 @@ export class SelfService extends BaseService {
|
|
|
|
headers.set('Content-Type', 'application/json');
|
|
|
|
headers.set('Content-Type', 'application/json');
|
|
|
|
|
|
|
|
|
|
|
|
return this.http.post(url, SelfService.buildGetSelfBody(), {headers: this.headers})
|
|
|
|
return this.http.post(url, SelfService.buildGetSelfBody(), {headers: this.headers})
|
|
|
|
|
|
|
|
.pipe(this.retryRated())
|
|
|
|
.pipe(tap(response => {
|
|
|
|
.pipe(tap(response => {
|
|
|
|
this.updateUserInfo(response);
|
|
|
|
this.updateUserInfo(response);
|
|
|
|
}));
|
|
|
|
}));
|
|
|
@ -74,7 +75,8 @@ export class SelfService extends BaseService {
|
|
|
|
public changeProfilePicture(file: any) {
|
|
|
|
public changeProfilePicture(file: any) {
|
|
|
|
const formData: any = new FormData();
|
|
|
|
const formData: any = new FormData();
|
|
|
|
formData.append('profilePicture', file);
|
|
|
|
formData.append('profilePicture', file);
|
|
|
|
return this.http.post<IFileUploadResult>(environment.greenvironmentUrl + '/upload', formData);
|
|
|
|
return this.http.post<IFileUploadResult>(environment.greenvironmentUrl + '/upload', formData)
|
|
|
|
|
|
|
|
.pipe(this.retryRated());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|