Kaynağa Gözat

Fix DB spec

ghorsington 5 yıl önce
ebeveyn
işleme
f56f78453c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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[];
 }