mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
Merge pull request #1044 from arc53/fix/minor-bugs
fix: delete all method type
This commit is contained in:
@@ -108,7 +108,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
|
||||
|
||||
const handleDeleteAllConversations = () => {
|
||||
conversationService
|
||||
.deleteAll({})
|
||||
.deleteAll()
|
||||
.then(() => {
|
||||
fetchConversations();
|
||||
})
|
||||
|
||||
@@ -23,8 +23,8 @@ const conversationService = {
|
||||
apiClient.get(endpoints.CONVERSATION.SHARED_CONVERSATION(identifier)),
|
||||
delete: (id: string, data: any): Promise<any> =>
|
||||
apiClient.post(endpoints.CONVERSATION.DELETE(id), data),
|
||||
deleteAll: (data: any): Promise<any> =>
|
||||
apiClient.post(endpoints.CONVERSATION.DELETE_ALL, data),
|
||||
deleteAll: (): Promise<any> =>
|
||||
apiClient.get(endpoints.CONVERSATION.DELETE_ALL),
|
||||
update: (data: any): Promise<any> =>
|
||||
apiClient.post(endpoints.CONVERSATION.UPDATE, data),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user