Skip to content

Commit

Permalink
[hotfix] course_title 빈 스트링 가능하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Hank-Choi committed Aug 28, 2023
1 parent 91a7c3b commit 86d8024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/timetable/TimetableLectureService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export async function partialModifyUserLecture(userId: string, tableId: string,
throw new TimetableNotFoundError();
}

if (!lecture.course_title) throw new InvalidLectureUpdateRequestError(lecture);
if (lecture.course_title === "") throw new InvalidLectureUpdateRequestError(lecture);

if (lecture.course_number || lecture.lecture_number) {
throw new InvalidLectureUpdateRequestError(lecture);
Expand Down

0 comments on commit 86d8024

Please sign in to comment.