Skip to content

Commit

Permalink
fix: storeid fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongh00 committed Aug 6, 2024
1 parent 2a47ced commit 58d8ecc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ public void approval(String accessToken, ApprovalRequest request) {
cartQueryService.deleteCartByUserIdAndCartId(user.getUserId(), id);
}

Store store = storeQueryService.findStoreById(menuList.get(0).getId());
Store store = null;
if (!menuList.isEmpty() && menuList.get(0).getStore() != null) {
store = storeQueryService.findStoreById(menuList.get(0).getStore().getId());
}

// 토스 페이 결제 승인
// TossPaymentResponse tossPaymentResponse = paymentClient.confirmPayment(request);
Expand Down

0 comments on commit 58d8ecc

Please sign in to comment.