From 66f8d676d5efe98f4f3bf8785a306957b054f50c Mon Sep 17 00:00:00 2001 From: j-yong99 Date: Mon, 20 May 2024 19:21:33 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=EC=97=AC=ED=96=89=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=EC=95=88=EB=90=98=EB=8A=94=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/moment/core/service/TripService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/moment/moment-server/core/src/main/java/com/moment/core/service/TripService.java b/backend/moment/moment-server/core/src/main/java/com/moment/core/service/TripService.java index 9695f09645..0e62eceb40 100644 --- a/backend/moment/moment-server/core/src/main/java/com/moment/core/service/TripService.java +++ b/backend/moment/moment-server/core/src/main/java/com/moment/core/service/TripService.java @@ -73,9 +73,9 @@ public Trip delete(Long tripId) { public void update(Long userId, TripRequestDTO.UpdateTrip trip) { Trip oldTrip = this.delete(trip.getTripId()); this.register(TripRequestDTO.RegisterTrip.builder() - .startDate(oldTrip.getStartDate()) - .endDate(oldTrip.getEndDate()) - .tripName(oldTrip.getTripName()) + .startDate(trip.getStartDate()) + .endDate(trip.getEndDate()) + .tripName(trip.getTripName()) .build(), userId); }