feat: delete idb after migration

This commit is contained in:
Timothy J. Baek 2023-12-26 18:44:08 -08:00
parent e2a5964842
commit d78df83453
3 changed files with 21 additions and 19 deletions

View file

@ -49,15 +49,6 @@
await deleteChatById(localStorage.token, id);
await chats.set(await getChatList(localStorage.token));
};
// const deleteChatHistory = async () => {
// await $db.deleteAllChat();
// const tx = this.db.transaction('chats', 'readwrite');
// await Promise.all([tx.store.clear(), tx.done]);
// await chats.set(await this.getChats());
// };
</script>
<div