From c0e681ca48946c69c06d4e531ed19ac5767b55ce Mon Sep 17 00:00:00 2001
From: Lukas Kimpel <lukas.kimpel@mni.thm.de>
Date: Mon, 19 Mar 2018 21:52:36 +0100
Subject: [PATCH] Revert changes on user

---
 src/app/create-comment/create-comment.component.ts | 4 ++--
 src/app/room.service.ts                            | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/app/create-comment/create-comment.component.ts b/src/app/create-comment/create-comment.component.ts
index f999946d7..a82a11c70 100644
--- a/src/app/create-comment/create-comment.component.ts
+++ b/src/app/create-comment/create-comment.component.ts
@@ -46,9 +46,9 @@ export class CreateCommentComponent implements OnInit {
       return;
     }
     this.commentService.addComment({
-      id: this.room.id + this.user.userId,
+      id: this.room.id + this.user.id,
       roomId: this.room.id,
-      userId: this.user.userId,
+      userId: this.user.id,
       subject: subject,
       body: body,
       creationTimestamp: new Date(Date.now())
diff --git a/src/app/room.service.ts b/src/app/room.service.ts
index b48f9dcec..c5fe100fe 100644
--- a/src/app/room.service.ts
+++ b/src/app/room.service.ts
@@ -32,7 +32,7 @@ export class RoomService extends ErrorHandlingService {
     return this.http.post<Room[]>(getRoomsUrl, {
       properties: {},
       externalFilters: {
-        ownerId: this.authenticationService.getUser().userId
+        ownerId: this.authenticationService.getUser().id
       }
     }, httpOptions);
   }
-- 
GitLab