From 2d56bff89be3656cdab0a2f34cfc7f69edd116e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Mon, 18 Mar 2019 14:36:59 +0100 Subject: [PATCH] Fix bug in comment service --- src/app/components/shared/comment/comment.component.ts | 1 - src/app/services/http/comment.service.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/components/shared/comment/comment.component.ts b/src/app/components/shared/comment/comment.component.ts index d371f329b..dbbff9b61 100644 --- a/src/app/components/shared/comment/comment.component.ts +++ b/src/app/components/shared/comment/comment.component.ts @@ -43,7 +43,6 @@ export class CommentComponent implements OnInit { setCorrect(comment: Comment): void { comment.correct = !comment.correct; this.commentService.updateComment(comment).subscribe(); - console.log('is' + comment.correct); } delete(comment: Comment): void { diff --git a/src/app/services/http/comment.service.ts b/src/app/services/http/comment.service.ts index 8f404e05b..7e0364aee 100644 --- a/src/app/services/http/comment.service.ts +++ b/src/app/services/http/comment.service.ts @@ -60,7 +60,7 @@ export class CommentService extends BaseHttpService { } updateComment(comment: Comment): Observable<any> { - const connectionUrl = this.apiUrl + this.apiUrl.comment + '/' + comment.id; + const connectionUrl = this.apiUrl.base + this.apiUrl.comment + '/' + comment.id; return this.http.put(connectionUrl, comment, httpOptions).pipe( tap(_ => ''), catchError(this.handleError<any>('updateComment')) -- GitLab