From 86ff0b846ead3185cf32f2c5145b22677ca9a1fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=20K=C3=A4sler?= <tom.kaesler@mni.thm.de>
Date: Wed, 12 Jun 2019 14:58:33 +0200
Subject: [PATCH] Remove id from model. PK is userId+commentId

---
 src/app/models/vote.ts | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/app/models/vote.ts b/src/app/models/vote.ts
index c2d4e0a62..4ee6773e2 100644
--- a/src/app/models/vote.ts
+++ b/src/app/models/vote.ts
@@ -1,5 +1,4 @@
 export class Vote {
-  id: string;
   userId: string;
   commentId: string;
   vote: number;
@@ -7,7 +6,6 @@ export class Vote {
   constructor(userId: string ,
               commentId: string,
               vote: number) {
-    this.id = '';
     this.userId = userId;
     this.commentId = commentId;
     this.vote = vote;
-- 
GitLab