Skip to content

Commit

Permalink
Merge pull request #169 from kookmin-sw/backend/develop/v3
Browse files Browse the repository at this point in the history
✨ 여행 수정안되는 버그 해결
  • Loading branch information
J-Yong99 authored May 20, 2024
2 parents 5558073 + 66f8d67 commit 2a0de17
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 2a0de17

Please sign in to comment.