Skip to content

Commit

Permalink
Merge pull request #34 from hamings/feature/ujae
Browse files Browse the repository at this point in the history
#32 [fix] UserService 빌더 LectureRegistration리스트 초기화 코드 추가
  • Loading branch information
kimujae authored Mar 25, 2024
2 parents 2859e9b + e4d2f16 commit 4093196
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/src/repository/StudentRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public List<Student> findAll() {
student.setLectureRegistrationList(new ArrayList<>());

for (Long id : student.getLectureRegistrationIdList()) {
System.out.println(lectureRegistrationMap.get(id).getLectureId());
student.getLectureRegistrationList().add(lectureRegistrationMap.get(id));
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/src/service/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void signInTeacher(String id, String password, String name, String gender
.birthday(birthday)
.email(email)
.lectureIdList(new ArrayList<>())
.lectureIdList(new ArrayList<>())
.lectureList(new ArrayList<>())
.build();
teacherRepository.insert(newTeacher);
teacherRepository.save();
Expand Down

0 comments on commit 4093196

Please sign in to comment.