diff --git a/src/main/java/com/backoffice/upjuyanolja/domain/point/service/PointService.java b/src/main/java/com/backoffice/upjuyanolja/domain/point/service/PointService.java index 98426166..54d95306 100644 --- a/src/main/java/com/backoffice/upjuyanolja/domain/point/service/PointService.java +++ b/src/main/java/com/backoffice/upjuyanolja/domain/point/service/PointService.java @@ -395,7 +395,6 @@ private void useChargePointForCoupon(long totalPrice, Long pointChargeId, Point } long totalBalance = memberPoint.getTotalPointBalance() - totalPrice; - validatePointChargeStatus(memberPoint, totalBalance); updateTotalPointBalance(memberPoint, totalBalance); } @@ -638,13 +637,4 @@ private void validatePointRefund(PointCharges pointCharges) { } } - private void validatePointChargeStatus(Point point, long totalBalance) { - long correctBalance = - Optional.ofNullable(pointChargesRepository.sumTotalPaidPoint(point)).orElse(0L) + - Optional.ofNullable(pointChargesRepository.sumTotalRemainedPoint(point)).orElse(0L); - if (totalBalance != correctBalance) { - throw new PointTradeFailedException(); - } - } - }