chore: Refactor deleteChatHistory method to deleteAllChatHistory

This commit is contained in:
n4ze3m
2024-05-15 10:30:11 +05:30
parent 182f914275
commit d6fff4bfa1
2 changed files with 10 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ export const SettingOther = () => {
if (confirm) {
const db = new PageAssitDatabase()
await db.deleteChatHistory()
await db.deleteAllChatHistory()
queryClient.invalidateQueries({
queryKey: ["fetchChatHistory"]
})