Skip to content

Commit

Permalink
Merge pull request #153 from boostcampwm2023/hotfix/shape-user-eager-…
Browse files Browse the repository at this point in the history
…loading

[Hotfix] Shape 엔티티의 user에 eager loading 추가
  • Loading branch information
JoonSoo-Kim authored Nov 28, 2023
2 parents 184e8f4 + a449792 commit eb32f67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BE/src/shapes/shapes.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ export class Shape extends BaseEntity {
@Generated("uuid")
uuid: string;

@ManyToOne(() => User, (user) => user.userId, { nullable: false })
@ManyToOne(() => User, (user) => user.userId, {
nullable: false,
eager: true,
})
user: User;

@Column()
Expand Down

0 comments on commit eb32f67

Please sign in to comment.