From 13e368bc00b6be386f433ca0863672a3d631747f Mon Sep 17 00:00:00 2001 From: seulgi99 Date: Sun, 18 Aug 2024 21:23:51 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=98=A4=ED=83=80=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gdsc/domain/study/application/CommonStudyService.java | 2 +- .../gdsc/domain/study/dao/StudyAnnouncementRepository.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }