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 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app/services/comment.service.ts') 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); -- cgit v1.2.3