Merge pull request #1044 from arc53/fix/minor-bugs

fix: delete all method type
This commit is contained in:
Alex
2024-07-29 21:25:12 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) {
const handleDeleteAllConversations = () => {
conversationService
.deleteAll({})
.deleteAll()
.then(() => {
fetchConversations();
})

View File

@@ -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),
};