Skip to content

Commit

Permalink
Merge pull request #155 from dabinHam/refactor/dabin
Browse files Browse the repository at this point in the history
hotfix : 충전기능 오류발생
  • Loading branch information
mkwkw authored Sep 22, 2023
2 parents 2753d19 + 18a731a commit 8b4dedf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public ChargeDto.ChargeResponse chargePayMoney(Long userId, ChargeDto.ChargeRequ
// 조회된 결과가 없는 경우, 새로운 PayMoney 객체 생성
PayMoney newPayMoney = new PayMoney();
newPayMoney.setUsers(user); // 사용자 ID 설정 등 다른 필요한 초기화 작업 수행
newPayMoney.setChargePayMoneyTotal(0L); // 초기값 설정
newPayMoney.setPayMoneyBalance(0L); // 초기값 설정
return payMoneyRepository.save(newPayMoney);
});

Expand Down

0 comments on commit 8b4dedf

Please sign in to comment.