fix: delete all method type

This commit is contained in:
Siddhant Rai
2024-07-29 12:15:18 +05:30
committed by GitHub
parent c96f905d2b
commit d1dedff9ca

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