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); }