Skip to content

Commit

Permalink
[PDS-164] feat: 차량 관련 알림 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dangnak2 committed Dec 5, 2023
1 parent 6268579 commit be15f5b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void rejectProductBooking(User user, Long carBookingId) {
emailUtil.createBookingData(SendEmailReq.toDto(carBooking, REJECT_BOOKING_TEXT)), BOOKING_TEMPLATE);
// 차랑 예약 반려 알림
try {
notificationService.sendNotification(carBooking.getCar().getName(), Constants.NotificationCategory.CAR, Constants.Notification.BODY_DENIED, user);
notificationService.sendNotification(carBooking.getCar().getName(), Constants.NotificationCategory.CAR, Constants.Notification.BODY_DENIED, carBooking.getUser());
} catch (IOException e) {
e.printStackTrace();
}
Expand Down Expand Up @@ -148,7 +148,7 @@ private void sendReturnNotification(User user, CarBooking carBooking) {
emailUtil.createBookingData(SendEmailReq.toDto(carBooking, RETURN_BOOKING_TEXT)), BOOKING_TEMPLATE);
// 차랑 예약 반납 알림
try {
notificationService.sendNotification(carBooking.getCar().getName(), Constants.NotificationCategory.CAR, Constants.Notification.BODY_RETURNED, user);
notificationService.sendNotification(carBooking.getCar().getName(), Constants.NotificationCategory.CAR, Constants.Notification.BODY_RETURNED, carBooking.getCar().getUser());
} catch (IOException e) {
e.printStackTrace();
}
Expand Down Expand Up @@ -202,7 +202,7 @@ public void cancelBookingProduct(User user, Long carBookingId) {

// 차량 예약 취소 알림
try {
notificationService.sendNotification(carBooking.getCar().getName(), Constants.NotificationCategory.CAR, Constants.Notification.BODY_CANCELED, user);
notificationService.sendNotification(carBooking.getCar().getName(), Constants.NotificationCategory.CAR, Constants.Notification.BODY_CANCELED, carBooking.getCar().getUser());
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit be15f5b

Please sign in to comment.