From 91a7c3befe260004400c53ba2775257b528ed836 Mon Sep 17 00:00:00 2001 From: Hank-Choi Date: Mon, 28 Aug 2023 16:57:11 +0900 Subject: [PATCH] =?UTF-8?q?[hotfix]=20course=5Ftitle=20=EB=B9=88=20?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=EB=A7=81=20=EA=B0=80=EB=8A=A5=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/timetable/TimetableLectureService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/timetable/TimetableLectureService.ts b/src/core/timetable/TimetableLectureService.ts index 9f082c28..fd63aa0b 100644 --- a/src/core/timetable/TimetableLectureService.ts +++ b/src/core/timetable/TimetableLectureService.ts @@ -121,6 +121,8 @@ export async function partialModifyUserLecture(userId: string, tableId: string, throw new TimetableNotFoundError(); } + if (!lecture.course_title) throw new InvalidLectureUpdateRequestError(lecture); + if (lecture.course_number || lecture.lecture_number) { throw new InvalidLectureUpdateRequestError(lecture); }