Skip to content
Snippets Groups Projects
Verified Commit bd19fde0 authored by Lukas Maximilian Kimpel's avatar Lukas Maximilian Kimpel
Browse files

Bugfix

Adjust types and variable names
parent a245b7cc
Branches
Tags
No related merge requests found
......@@ -40,7 +40,7 @@ export class CommentService extends ErrorHandlingService {
);
}
searchComments(roomId: string, userId: number): Observable<Comment[]> {
searchComments(roomId: string, userId: string): Observable<Comment[]> {
const url = `${this.commentsUrl}/?roomId=${roomId}&userId=${userId}`;
return this.http.get<Comment[]>(url).pipe(
tap (_ => ''),
......
export class Comment {
id: string;
roomId: string;
userId: number;
userId: string;
revision: string;
subject: string;
body: string;
......
......@@ -46,8 +46,9 @@ export class CreateCommentComponent implements OnInit {
return;
}
this.commentService.addComment({
id: this.room.id + this.user.userId,
roomId: this.room.id,
userId: this.user.id,
userId: this.user.userId,
subject: subject,
body: body,
creationTimestamp: new Date(Date.now())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment