From 084238dfa39f31b3661362cbe8cdea44e8f05992 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 19 Mar 2021 19:52:26 +0200 Subject: Fixed requests, following API updates --- src/app/services/comment.service.ts | 4 ++-- src/app/services/language.service.ts | 2 +- src/app/services/post.service.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/app/services/comment.service.ts b/src/app/services/comment.service.ts index 29707ab..70ab005 100644 --- a/src/app/services/comment.service.ts +++ b/src/app/services/comment.service.ts @@ -55,7 +55,7 @@ export class CommentService { getCommentRequest(id: Guid): Observable { const options = { - params: new HttpParams().set('Id', id.toString()) + params: new HttpParams().set('CommentId', id.toString()) }; return this._http.get(AppConstants.API_COMMENT_URL, options); } @@ -75,7 +75,7 @@ export class CommentService { deleteCommentRequest(commentId: Guid, authToken: string): Observable { const options = { - params: new HttpParams().set('Id', commentId.toString()), + params: new HttpParams().set('CommentId', commentId.toString()), headers: new HttpHeaders().set('Authorization', 'Bearer ' + authToken) }; return this._http.delete(AppConstants.API_COMMENT_URL, options); diff --git a/src/app/services/language.service.ts b/src/app/services/language.service.ts index 5846dd6..ec368da 100644 --- a/src/app/services/language.service.ts +++ b/src/app/services/language.service.ts @@ -105,7 +105,7 @@ export class LanguageService { deleteLanguageRequest(authToken: string, langId: Guid): Observable { const options = { - params: new HttpParams().set('Id', langId.toString()), + params: new HttpParams().set('LanguageId', langId.toString()), headers: new HttpHeaders().set('Authorization', 'Bearer ' + authToken) }; return this._http.delete(AppConstants.API_LANGUAGE_URL, options); diff --git a/src/app/services/post.service.ts b/src/app/services/post.service.ts index c8bd892..b49ffea 100644 --- a/src/app/services/post.service.ts +++ b/src/app/services/post.service.ts @@ -78,7 +78,7 @@ export class PostService { deletePostRequest(postId: Guid, authToken: string): Observable { const options = { - params: new HttpParams().set('Id', postId.toString()), + params: new HttpParams().set('PostId', postId.toString()), headers: new HttpHeaders().set('Authorization', 'Bearer ' + authToken) }; return this._http.delete(AppConstants.API_POST_URL, options); -- cgit v1.2.3