Skip to content

Commit

Permalink
Merge pull request #122 from 22caps/dev
Browse files Browse the repository at this point in the history
log: 정답 여부 오류로 인한 로그 포함
  • Loading branch information
GiHoo authored Nov 10, 2024
2 parents 7486b69 + 001be60 commit 81ce072
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@
import java.util.ArrayList;
import java.util.List;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
@RequiredArgsConstructor
@Transactional(readOnly = true)
Expand Down Expand Up @@ -95,6 +97,8 @@ public SubmissionResponseDto submitSolveHistory(SolveHistoryDetailRequestDto req
public void submitPluginSolveHistory(PluginSolveHistoryDetailRequestDto request) {
Member member = memberService.findByEmail(request.getEmail()).get();

log.info("정답 야부: {}", request.isCorrect());

pluginSolveHistoryRepository.save(
new PluginSolveHistory(member, ProblemType.valueOf(request.getProblemType()), request.isCorrect())
);
Expand Down

0 comments on commit 81ce072

Please sign in to comment.