Skip to content

Commit

Permalink
refactor: 오타 및 변수명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
AnTaeho committed Sep 25, 2024
1 parent 0923aa8 commit 499baf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public ResponseEntity<CouponResponse> addCoupon(
}

@PostMapping("/{couponId}")
public ResponseEntity<CouponResponse> issueCoupone(
public ResponseEntity<CouponResponse> issueCoupon(
@PathVariable("couponId") Long couponId,
HttpServletRequest request
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public List<CouponDetailResponse> getCouponDetail(Long userId) {
User user = getUser(userId);
return user.getUserCoupons().stream()
.map(UserCoupon::getCoupon)
.map(it -> new CouponDetailResponse(it.getDiscountRate().getStringForm(), it.getCreatedAt().toLocalDate()))
.map(coupon -> new CouponDetailResponse(coupon.getDiscountRate().getStringForm(), coupon.getCreatedAt().toLocalDate()))
.toList();
}

Expand Down

0 comments on commit 499baf3

Please sign in to comment.