Skip to content

Commit

Permalink
[WHD-250] Fix: item overdue notification email format
Browse files Browse the repository at this point in the history
  • Loading branch information
juy4844 committed Nov 18, 2024
1 parent e3f793e commit 15d7aab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void sendEmailForSchedule(String receiverName, String receiverEmail, Stri
@Override
public void sendOverdueNotification(String memberName, String receiverEmail, String itemName,
String clubName, String dueDate) {
String htmlText = createItemOverdueHtml(clubName, memberName, clubName, itemName, dueDate);
String htmlText = createItemOverdueHtml(memberName, itemName, clubName, dueDate);
sendEmail(htmlText, receiverEmail, ITEM_OVERDUE_NOTICE_EMAIL_SUBJECT.formatted(clubName));
}

Expand Down Expand Up @@ -154,7 +154,7 @@ private String createScheduleInfoHtml(String clubName, String receiverName, Stri
""".formatted(clubName, receiverName, clubName, scheduleTitle, scheduleContent, scheduleDateTime);
}

private String createItemOverdueHtml(String memberName, String memberEmail, String itemName,
private String createItemOverdueHtml(String memberName, String itemName,
String clubName, String dueDate) {
return """
<html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public class ItemOverdueNotificationService {
private final NotificationService notificationService;

@Scheduled(cron = "0 0 17 * * ?")
@Scheduled(cron = "0 0 9 * * ?")
public void scheduleOverdueNotification() {
notificationService.notifyOverdueItems();
}
Expand Down

0 comments on commit 15d7aab

Please sign in to comment.