diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/application/CommonStudyService.java b/src/main/java/com/gdschongik/gdsc/domain/study/application/CommonStudyService.java index f5b4abffa..ae45dbd70 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/application/CommonStudyService.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/application/CommonStudyService.java @@ -47,7 +47,7 @@ public List getStudyAnnouncements(Long studyId) { studyValidator.validateStudyMentorOrStudent(currentMember, study, studyHistory); final List studyAnnouncements = - studyAnnouncementRepository.findAllByStudyIdOOrderByCreatedAtDesc(studyId); + studyAnnouncementRepository.findAllByStudyIdOrderByCreatedAtDesc(studyId); return studyAnnouncements.stream().map(StudyAnnouncementResponse::from).toList(); } diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/dao/StudyAnnouncementRepository.java b/src/main/java/com/gdschongik/gdsc/domain/study/dao/StudyAnnouncementRepository.java index aad867648..3d81940e2 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/dao/StudyAnnouncementRepository.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/dao/StudyAnnouncementRepository.java @@ -13,5 +13,5 @@ default StudyAnnouncement getById(Long id) { return findById(id).orElseThrow(() -> new CustomException(STUDY_ANNOUNCEMENT_NOT_FOUND)); } - List findAllByStudyIdOOrderByCreatedAtDesc(Long studyId); + List findAllByStudyIdOrderByCreatedAtDesc(Long studyId); }