Skip to content

Commit

Permalink
fix : 레이싱게임 추첨시 기존 데이터베이스 내용 삭제 (CC-181) (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
putdata authored Aug 23, 2024
1 parent 875420a commit 063e746
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
public class AdminRacingGameService {
private final RacingGameRepository racingGameRepository;
private final RacingGameWinnerRepository racingGameWinnerRepository;
private final FindingGameAnswerDbRepository findingGameAnswerDbRepository;
private final RacingGameInfoRepository racingGameInfoRepository;


Expand Down Expand Up @@ -84,6 +83,7 @@ public List<RacingGameWinnerResponseDto> drawRacingGameWinner() {
}
}
// TODO: 수학적으로 보이기 + 더 나은 방법 생각해보기?
racingGameWinnerRepository.deleteAll();
racingGameWinnerRepository.saveAll(winners);
return racingGameWinnerResponseDtoList;
}
Expand Down

0 comments on commit 063e746

Please sign in to comment.