diff options
| -rw-r--r-- | src/app/services/comment.service.ts | 4 | ||||
| -rw-r--r-- | src/app/services/language.service.ts | 2 | ||||
| -rw-r--r-- | src/app/services/post.service.ts | 2 |
3 files changed, 4 insertions, 4 deletions
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<object> { 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<object> { 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<object> { 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<object> { 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); |
