From f12c7374eb3567fc4714c368ea5fdb4b45757f72 Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Thu, 13 Mar 2025 01:37:09 +0330 Subject: [PATCH] added use get orders cart --- frontend/composables/api/orders/useGetOrdersCart.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/composables/api/orders/useGetOrdersCart.ts b/frontend/composables/api/orders/useGetOrdersCart.ts index 30589ba..f726fb6 100644 --- a/frontend/composables/api/orders/useGetOrdersCart.ts +++ b/frontend/composables/api/orders/useGetOrdersCart.ts @@ -5,7 +5,7 @@ import { API_ENDPOINTS, QUERY_KEYS } from "~/constants"; // types -export type GetOrdersCartResponse = Order[]; +export type GetOrdersCartResponse = Cart; const useGetOrdersCart = () => { // state @@ -16,7 +16,7 @@ const useGetOrdersCart = () => { const handleGetOrdersCart = async () => { const { data } = await axios.get( - API_ENDPOINTS.orders.get_cart + API_ENDPOINTS.orders.cart.get_all ); return data; };