From be15f5b0e59ba0558521f37a418a1d1c0ec1b20d Mon Sep 17 00:00:00 2001 From: dangnak2 <80161984+dangnak2@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:17:44 +0900 Subject: [PATCH] =?UTF-8?q?[PDS-164]=20feat:=20=EC=B0=A8=EB=9F=89=20?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=20=EC=95=8C=EB=A6=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pladialmserver/booking/service/CarBookingService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/example/pladialmserver/booking/service/CarBookingService.java b/src/main/java/com/example/pladialmserver/booking/service/CarBookingService.java index e4894ecf..a714ab16 100644 --- a/src/main/java/com/example/pladialmserver/booking/service/CarBookingService.java +++ b/src/main/java/com/example/pladialmserver/booking/service/CarBookingService.java @@ -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(); } @@ -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(); } @@ -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(); }