浏览代码

Fix DB spec

ghorsington 5 年之前
父节点
当前提交
f56f78453c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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[];
 }