ghorsington пре 5 година
родитељ
комит
1b0f54ef23
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      db/src/entity/ContestVote.ts

+ 1 - 2
db/src/entity/ContestVote.ts

@@ -9,8 +9,7 @@ export class ContestVote {
     userId: string;
 
     // :thonq
-    @PrimaryColumn()
-    @ManyToOne(type => Contest, contest => contest.votes)
+    @ManyToOne(type => Contest, contest => contest.votes, { primary: true })
     contest: Contest;
 
     @ManyToOne(type => ContestEntry, entry => entry.votes)