diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index 22ab5017..bd0d460c 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -108,7 +108,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { const handleDeleteAllConversations = () => { conversationService - .deleteAll({}) + .deleteAll() .then(() => { fetchConversations(); }) diff --git a/frontend/src/api/services/conversationService.ts b/frontend/src/api/services/conversationService.ts index 9e31df84..aaf703de 100644 --- a/frontend/src/api/services/conversationService.ts +++ b/frontend/src/api/services/conversationService.ts @@ -23,8 +23,8 @@ const conversationService = { apiClient.get(endpoints.CONVERSATION.SHARED_CONVERSATION(identifier)), delete: (id: string, data: any): Promise => apiClient.post(endpoints.CONVERSATION.DELETE(id), data), - deleteAll: (data: any): Promise => - apiClient.post(endpoints.CONVERSATION.DELETE_ALL, data), + deleteAll: (): Promise => + apiClient.get(endpoints.CONVERSATION.DELETE_ALL), update: (data: any): Promise => apiClient.post(endpoints.CONVERSATION.UPDATE, data), };