Skip to content

Commit

Permalink
Merge pull request #21 from iHangbot/refactor/keyword
Browse files Browse the repository at this point in the history
refactor: addKeyWord함수 refactor
  • Loading branch information
Jimin0304 authored Aug 19, 2023
2 parents b0f4868 + 7ed20b0 commit 252769d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ public KeyWordResponseDTO addKeyWord(String keyword, String username, int count,
.date(date)
.build();
KeyWord saved = keyWordRepository.save(keyWord);

return KeyWordResponseDTO.from(saved);
}
else {
word.get().updateCount(count);
}

word.get().updateCount(count);

return KeyWordResponseDTO.from(word.get());
}

Expand Down

0 comments on commit 252769d

Please sign in to comment.