diff --git a/backend/src/main/java/com/now/naaga/player/application/PlayerService.java b/backend/src/main/java/com/now/naaga/player/application/PlayerService.java index d8f013099..b1c96dd24 100644 --- a/backend/src/main/java/com/now/naaga/player/application/PlayerService.java +++ b/backend/src/main/java/com/now/naaga/player/application/PlayerService.java @@ -90,8 +90,7 @@ public Player create(final CreatePlayerCommand createPlayerCommand) { public void addScore(final AddScoreCommand addScoreCommand) { final Long playerId = addScoreCommand.playerId(); final Score score = addScoreCommand.score(); - final Player player = playerRepository.findById(playerId) - .orElseThrow(() -> new PlayerException(PLAYER_NOT_FOUND)); + final Player player = findPlayerById(playerId); player.addScore(score); }