api bugfix

This commit is contained in:
leejinho 2020-01-29 15:09:41 +09:00
parent bb22a17baf
commit 2066fd69f2

View File

@ -317,14 +317,21 @@ export class CommonApiService {
public translationSave( public translationSave(
req: TranslationSaveRequest req: TranslationSaveRequest
): Observable<TranslationSaveResponse> { ): Observable<TranslationSaveResponse> {
return this.httpClient const httpReq = new HttpRequest(
.post<any>( 'POST',
this.urls.translationSave, this.urls.translationSave,
{}, encodeTranslationSave(req),
{ { reportProgress: true }
params: encodeTranslationSave(req) );
return this.httpClient.request(httpReq).pipe(
filter(event => {
if (event instanceof HttpResponse) {
return true;
} }
) return false;
.pipe(map(res => decodeTranslationSave(res))); }),
map(res => decodeTranslationSave((res as HttpResponse<any>).body))
);
} }
} }