Skip to content

Commit cf24857

Browse files
committed
Merge branch 'dev'
2 parents b74ee80 + 3b57586 commit cf24857

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/ivory/ivory/service/CaregiverService.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ public CustomApiResponse<?> getCareDetail(Long currentMemberId, Long applyId) {
105105
public CustomApiResponse<?> AcceptCare(Long currentMemberId, Long applyId) {
106106
Optional<Caregiver> caregiver = caregiverRepository.findById(currentMemberId);
107107

108-
String caregiverName = "김돌봄";
109-
110108
if (caregiver.isEmpty()) {
111109
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "존재하지 않는 돌보미입니다.");
112110
}
@@ -129,7 +127,7 @@ public CustomApiResponse<?> AcceptCare(Long currentMemberId, Long applyId) {
129127
applyRepository.save(apply);
130128

131129
// 사용자에게 알림 전송
132-
String notificationMessage = String.format("돌보미 %s님이 신청을 수락했습니다.", caregiverName);
130+
String notificationMessage = "돌보미가 정해졌어요!";
133131

134132
messagingTemplate.convertAndSend(
135133
"/topic/notifications/users/" + apply.getMember().getId().toString(), // 모든 구독자가 받을 수 있는 브로드캐스트 경로

0 commit comments

Comments
 (0)