Skip to content
Snippets Groups Projects
Commit 86ff0b84 authored by Tom Käsler's avatar Tom Käsler
Browse files

Remove id from model. PK is userId+commentId

parent 1e01e203
Branches refactor-vote
Tags
1 merge request!222Remove id from vote model
Pipeline #27088 passed with stages
in 6 minutes and 55 seconds
export class Vote { export class Vote {
id: string;
userId: string; userId: string;
commentId: string; commentId: string;
vote: number; vote: number;
...@@ -7,7 +6,6 @@ export class Vote { ...@@ -7,7 +6,6 @@ export class Vote {
constructor(userId: string , constructor(userId: string ,
commentId: string, commentId: string,
vote: number) { vote: number) {
this.id = '';
this.userId = userId; this.userId = userId;
this.commentId = commentId; this.commentId = commentId;
this.vote = vote; this.vote = vote;
......
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