|
@@ -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)
|