Skip to content

Commit

Permalink
chore: 알림 제목 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Sion99 committed Jun 23, 2024
1 parent 29c1b50 commit dbc95ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/savemyreceipt/smr/service/GroupService.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void leaveGroup(String email, Long groupId) {
throw new CustomException(ErrorStatus.ACCOUNTANT_CANNOT_LEAVE_GROUP, ErrorStatus.ACCOUNTANT_CANNOT_LEAVE_GROUP.getMessage());
}
groupMemberRepository.delete(groupMember);
notificationService.createNotification(member, "그룹을 탈퇴했어요.", group.getName() + " 그룹을 탈퇴했어요. 다음에 또 만나요! 👋");
notificationService.createNotification(member, "[그룹 탈퇴]", group.getName() + " 그룹을 탈퇴했어요. 다음에 또 만나요! 👋");
}

private Member findAccountant(Group group) {
Expand All @@ -155,7 +155,7 @@ private void join(Member member, Group group, Role role) {
.role(role)
.build();
groupMemberRepository.save(groupMember);
notificationService.createNotification(member, "새로운 그룹에 가입했어요.", group.getName() + " 그룹에 가입을 축하드려요! 🎉");
notificationService.createNotification(member, "[그룹 가입]", group.getName() + " 그룹에 가입을 축하드려요! 🎉");
}

@Transactional(readOnly = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void updateReceipt(String email, Long receiptId, ReceiptUpdateRequestDto
receipt.updateReceipt(receiptUpdateRequestDto);
receiptRepository.save(receipt);
sendGridUtil.sendReceiptEmail(findAccountant(receipt), receipt);
notificationService.createNotification(findAccountant(receipt), "새로운 영수증이 도착했어요.", receipt.getGroup().getName() + " 그룹에 새로운 영수증이 도착했어요! 확인해주세요! 🧾");
notificationService.createNotification(findAccountant(receipt), "[영수증]", receipt.getGroup().getName() + " 그룹에 새로운 영수증이 도착했어요! 확인해주세요! 🧾");
}

@Transactional
Expand Down

0 comments on commit dbc95ea

Please sign in to comment.