Skip to content

Commit f0c7738

Browse files
committed
fix: Shop API의 잘못된 스키마 정의 및 API 수정
1 parent d940057 commit f0c7738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/pyconkr-shop/apis/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ namespace ShopAPIRoute {
8686
* @returns 현재 장바구니 상태
8787
*/
8888
export const retrieveCart = () =>
89-
shopAPIClient.get<ShopAPISchema.OrderProductItem[]>("v1/orders/cart/");
89+
shopAPIClient.get<ShopAPISchema.Order>("v1/orders/cart/");
9090

9191
/**
9292
* 장바구니에 상품을 추가합니다.
@@ -138,7 +138,7 @@ namespace ShopAPIRoute {
138138
*/
139139
export const prepareCartOrder = () =>
140140
shopAPIClient.post<ShopAPISchema.Order, undefined>(
141-
"v1/orders/cart/",
141+
"v1/orders/",
142142
undefined
143143
);
144144

0 commit comments

Comments
 (0)