diff options
Diffstat (limited to 'client/src/app/shared/shared-main/custom-page/custom-page.service.ts')
-rw-r--r-- | client/src/app/shared/shared-main/custom-page/custom-page.service.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/client/src/app/shared/shared-main/custom-page/custom-page.service.ts b/client/src/app/shared/shared-main/custom-page/custom-page.service.ts index e5c2b3cd4..2914dd6d9 100644 --- a/client/src/app/shared/shared-main/custom-page/custom-page.service.ts +++ b/client/src/app/shared/shared-main/custom-page/custom-page.service.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { of } from 'rxjs' | 1 | import { of } from 'rxjs' |
2 | import { catchError, map } from 'rxjs/operators' | 2 | import { catchError } from 'rxjs/operators' |
3 | import { HttpClient } from '@angular/common/http' | 3 | import { HttpClient } from '@angular/common/http' |
4 | import { Injectable } from '@angular/core' | 4 | import { Injectable } from '@angular/core' |
5 | import { RestExtractor } from '@app/core' | 5 | import { RestExtractor } from '@app/core' |
@@ -30,9 +30,6 @@ export class CustomPageService { | |||
30 | 30 | ||
31 | updateInstanceHomepage (content: string) { | 31 | updateInstanceHomepage (content: string) { |
32 | return this.authHttp.put(CustomPageService.BASE_INSTANCE_HOMEPAGE_URL, { content }) | 32 | return this.authHttp.put(CustomPageService.BASE_INSTANCE_HOMEPAGE_URL, { content }) |
33 | .pipe( | 33 | .pipe(catchError(err => this.restExtractor.handleError(err))) |
34 | map(this.restExtractor.extractDataBool), | ||
35 | catchError(err => this.restExtractor.handleError(err)) | ||
36 | ) | ||
37 | } | 34 | } |
38 | } | 35 | } |