From 23f9e4081b88eca0165a10a2237747bafa28d684 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Thu, 27 Mar 2025 22:21:36 +0330 Subject: [PATCH] Updated --- frontend/composables/api/chat/useGetChat.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/composables/api/chat/useGetChat.ts b/frontend/composables/api/chat/useGetChat.ts index 927af3e..447076b 100644 --- a/frontend/composables/api/chat/useGetChat.ts +++ b/frontend/composables/api/chat/useGetChat.ts @@ -6,9 +6,9 @@ import { useAuth } from "~/composables/api/auth/useAuth"; // types -export type GetBranchResponse = ApiPaginated; +export type GetChatResponse = ApiPaginated; -const useGetBranch = (productId: string | number, enabled: Ref) => { +const useGetChat = (productId: string | number, enabled: Ref) => { // state const { $axios: axios } = useNuxtApp(); @@ -26,7 +26,7 @@ const useGetBranch = (productId: string | number, enabled: Ref) => { limit: number; offset: number; }) => { - const { data } = await axios.get( + const { data } = await axios.get( `${API_ENDPOINTS.chat.messages}/${productId}`, { params: { @@ -65,4 +65,4 @@ const useGetBranch = (productId: string | number, enabled: Ref) => { }); }; -export default useGetBranch; +export default useGetChat;