Skip to content

Commit

Permalink
fix: SQL에 deleted_at is null 조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hun-ca committed Jun 23, 2024
1 parent e0f0f30 commit 9c7ae3e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ProblemDao(
)
.from(Problem.PROBLEM)
.where(Problem.PROBLEM.ID.eq(query.problemId))
.and(Problem.PROBLEM.DELETED_AT.isNull)
.fetchOneInto(SelectProblemRecord::class.java)
?: throw RuntimeException("Problem with ID ${query.problemId} not found") // TODO: 에러 표준화
}
Expand All @@ -34,6 +35,7 @@ class ProblemDao(
)
.from(Problem.PROBLEM)
.where(Problem.PROBLEM.ID.eq(query.problemId))
.and(Problem.PROBLEM.DELETED_AT.isNull)
.fetchOneInto(SelectProblemAnswerRecord::class.java)
?: throw RuntimeException("Problem Answer with ID ${query.problemId} not found") // TODO: 에러 표준화
}
Expand Down

0 comments on commit 9c7ae3e

Please sign in to comment.