Skip to content

Commit

Permalink
✨ 여행 수정안되는 버그 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Yong99 committed May 20, 2024
1 parent 2fb460d commit 66f8d67
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 66f8d67

Please sign in to comment.