|
@@ -11,9 +11,11 @@ export class ContestVote {
|
|
|
@PrimaryColumn()
|
|
|
contestId: number;
|
|
|
|
|
|
- @ManyToOne(type => Contest, contest => contest.votes, { primary: true })
|
|
|
+ // @ManyToOne(type => Contest, contest => contest.votes, { primary: true })
|
|
|
+ @ManyToOne("Contest", "votes", { primary: true })
|
|
|
contest: Contest;
|
|
|
|
|
|
- @ManyToOne(type => ContestEntry, entry => entry.votes)
|
|
|
+ // @ManyToOne(type => ContestEntry, entry => entry.votes)
|
|
|
+ @ManyToOne("ContestEntry", "votes")
|
|
|
contestEntry: ContestEntry;
|
|
|
}
|