Skip to content

Commit

Permalink
fix: 우산 반납 시 우산 위치 변경 (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
birdieHyun authored Dec 18, 2023
1 parent 7d6940f commit 6a6cf54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/upbrella/be/rent/service/RentService.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void returnUmbrellaByUser(User userToReturn, ReturnUmbrellaByUserRequest

History updatedHistory = History.updateHistoryForReturn(history, returnStore, request);
Umbrella returnedUmbrella = history.getUmbrella();
returnedUmbrella.returnUmbrella();
returnedUmbrella.returnUmbrella(returnStore);

rentRepository.save(updatedHistory);
addImprovementReportFromReturnByUser(updatedHistory, request);
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/upbrella/be/umbrella/entity/Umbrella.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ public void rentUmbrella() {
this.rentable = false;
}

public void returnUmbrella() {
public void returnUmbrella(StoreMeta storeMeta) {

this.storeMeta = storeMeta;
this.rentable = true;
}

Expand Down

0 comments on commit 6a6cf54

Please sign in to comment.