From 1f237d9603dffe8f3dffdbf90f96d5381e354a8d Mon Sep 17 00:00:00 2001 From: minjunj Date: Fri, 24 May 2024 12:41:31 +0900 Subject: [PATCH] update : add eager option in scoring --- src/scoring/entity/scoring.entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scoring/entity/scoring.entity.ts b/src/scoring/entity/scoring.entity.ts index 3cd4e49..f7c7dfe 100644 --- a/src/scoring/entity/scoring.entity.ts +++ b/src/scoring/entity/scoring.entity.ts @@ -66,7 +66,7 @@ export class Scoring { @ManyToOne(() => Lecture, (lecture) => lecture.scoring) lecture: Lecture; - @ManyToOne((Type) => Prof, (prof) => prof.id, {}) + @ManyToOne((Type) => Prof, (prof) => prof.id, { eager: true }) prof: Prof; scoring: Lecture; }