Skip to content

Commit ac853f9

Browse files
committed
fix: 재고 수량 검증 로직에 null 및 0 이하 처리 추가
1 parent 22be7b6 commit ac853f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/commerce-api/src/main/java/com/loopers/domain/point/PointService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Point createPoint(String userId) {
1818
if (pointRepository.existsByUserId(userId)) {
1919
throw new CoreException(ErrorType.CONFLICT, "이미 포인트가 존재하는 사용자입니다.");
2020
}
21-
Point point = Point.create(userId, null);
21+
Point point = Point.create(userId);
2222
return pointRepository.save(point);
2323
}
2424

0 commit comments

Comments
 (0)