Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[DEV-54] 퀴즈 결과 로드 시 SQL Syntax 오류 수정 #29

Merged
merged 2 commits into from
May 28, 2024

Conversation

RookieAND
Copy link
Contributor

@RookieAND RookieAND commented May 28, 2024

Task Summary ✨

  • 퀴즈 결과 로드 시 SQL Syntax 오류 수정

Description 📑

  • 퀴즈 결과를 불러오는 과정에서 findByIdListWithUserLike 메서드에 발생한 에러를 수정했습니다.
  • wordIdList 의 length 가 0 이라면, WHERE "word"."id" IN () 으로 SQL 이 등록되어 syntax error at or near ")" 에러가 발생합니다.
  • 따라서 wordIdList 의 length 가 0일 경우 즉시 빈 배열을 반환하는 방식으로 문제를 해결했습니다.
  • 퀴즈 결과 생성 시 quizResultId 가 userId 로 잘못 표기되었던 문제를 수정했습니다.

Self Checklist ✅

  • 코드 리뷰 요청
  • PR 제목 컨벤션에 맞는지 확인
  • PR Label 설정

@RookieAND RookieAND added the 🐞 Bug 버그, 기능 장애 수정 label May 28, 2024
@RookieAND RookieAND self-assigned this May 28, 2024
@RookieAND RookieAND merged commit 7c6a0f4 into develop May 28, 2024
1 check passed
@RookieAND RookieAND deleted the feature/DEV-54 branch May 29, 2024 03:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🐞 Bug 버그, 기능 장애 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant