Skip to content

Commit d92491f

Browse files
committed
Refactor: 1차 캐시의 더티체킹 기능으로 인해 불필요해진 update 쿼리 호출 함수 삭제
- JPA가 똑똑해져서 고치지 않아도 실제로는 update 쿼리를 한번한 호출하지만, JPA에 대한 이해도가 떨어지는 것 같은 코드는 삭제해주는게 좋을 것 같다.
1 parent b79d50a commit d92491f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/kotlin/io/ticketaka/api/point/application/PointService.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,5 @@ class PointService(
3737
fun updateRecharge(event: PointRechargeEvent) {
3838
val point = pointRepository.findById(event.pointId) ?: throw NotFoundException("포인트를 찾을 수 없습니다.")
3939
point.recharge(event.amount)
40-
pointRepository.updateBalance(point.id, point.balance)
4140
}
4241
}

0 commit comments

Comments
 (0)