Skip to content

Commit

Permalink
[Fix] 선인장 생성 시 선인장 type을 저장하지 못하는 문제를 해결했습니다
Browse files Browse the repository at this point in the history
  • Loading branch information
NARUBROWN committed Nov 23, 2024
1 parent 4e13be8 commit 4dbac4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public ResponseCreateCharacterDto createCharacter(Long user_id, RequestCharacter
Character newCharacter = Character.builder()
.name(requestCharacterDto.name())
.user(foundUser)
.cactus(CactusType.KING_CACTUS)
.build();
Character savedCharacter = characterRepository.save(newCharacter);
Home newHome = new Home(foundUser, savedCharacter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public void deleteHome(Long homeId) {
* @param character_id 바뀔 캐릭터 id
* @param user_id 유저의 캐릭터인지 확인하기 위해 필요한 Id
*/
@Deprecated
public void changeCharacter(Long home_id, Long character_id, Long user_id) {
Home foundHome = homeRepository.findById(home_id)
.orElseThrow(() -> new HomeException(HomeErrorCode.NO_HOME_INFO));
Expand Down

0 comments on commit 4dbac4c

Please sign in to comment.