Skip to content

Commit

Permalink
backend bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
omersafakbebek committed Dec 10, 2023
1 parent 4c81585 commit 8ab042d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ludos/backend/src/entities/group.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class Group {
@JoinTable()
members: User[];

@OneToMany(() => Post, (post) => post.group)
@OneToMany("Post","group")
posts: Post[];

@Column()
Expand Down
2 changes: 1 addition & 1 deletion ludos/backend/src/entities/post.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class Post {
})
numberOfDislikes: number;

@ManyToOne(() => Group)
@ManyToOne("Group")
group: Group;

@Column('text', { array: true, default: [] })
Expand Down

0 comments on commit 8ab042d

Please sign in to comment.