From a449792157641b5d784d59b7deb45debcec62c1c Mon Sep 17 00:00:00 2001 From: JoonSoo-Kim Date: Tue, 28 Nov 2023 11:54:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Shape=20=EC=97=94=ED=8B=B0=ED=8B=B0?= =?UTF-8?q?=EC=9D=98=20user=EC=97=90=20eager=20loading=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Shape 엔티티의 user에 eager: true로 설정 --- BE/src/shapes/shapes.entity.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BE/src/shapes/shapes.entity.ts b/BE/src/shapes/shapes.entity.ts index 7378b38..ff9d8ec 100644 --- a/BE/src/shapes/shapes.entity.ts +++ b/BE/src/shapes/shapes.entity.ts @@ -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()