Skip to content

Commit

Permalink
Merge pull request #60 from lsn5963/feat/quest
Browse files Browse the repository at this point in the history
[REFACTOR] 퀘스트 삭제 안되는 문제 수정
  • Loading branch information
lsn5963 authored Aug 22, 2024
2 parents 1bc944a + 4a93ff1 commit 0fca214
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ public ResponseEntity<?> deleteQuest(UserPrincipal userPrincipal, Long id) {
Quest quest = quests.stream().filter(q -> q.getId().equals(id))
.findFirst()
.orElseThrow(QuestNotFoundException::new);
System.out.println("quest.getContents() = " + quest.getContents());
quests.remove(quest);
questRepository.delete(quest);

return createApiResponse(Message.builder().message("퀘스트를 삭제했습니다.").build());
Expand Down

0 comments on commit 0fca214

Please sign in to comment.