ghorsington 5 vuotta sitten
vanhempi
commit
f56f78453c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      db/src/entity/ContestEntry.ts

+ 1 - 1
db/src/entity/ContestEntry.ts

@@ -11,6 +11,6 @@ export class ContestEntry {
     @ManyToOne(type => Contest, contest => contest.entries)
     contest: Contest;
 
-    @OneToMany(type => ContestVote, vote => vote.contest)
+    @OneToMany(type => ContestVote, vote => vote.contestEntry)
     votes: ContestVote[];
 }