1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-11 02:16:23 +00:00

Update noteHandler.ts to use deleteCacheFromDataStore instead of saveCacheToDataStore

This commit is contained in:
Wolfie 2024-03-10 08:15:55 -04:00
parent 60cd63163f
commit d54c5d4a4b
No known key found for this signature in database
GPG key ID: DE384EE9BF2D909A

View file

@ -10,7 +10,7 @@ import { ChannelStore, lodash, Toasts, UserStore } from "@webpack/common";
import { Channel, Message } from "discord-types/general"; import { Channel, Message } from "discord-types/general";
import { Discord, HolyNotes } from "./types"; import { Discord, HolyNotes } from "./types";
import { saveCacheToDataStore } from "./utils"; import { deleteCacheFromDataStore, saveCacheToDataStore } from "./utils";
export const noteHandlerCache = new Map(); export const noteHandlerCache = new Map();
@ -131,7 +131,7 @@ export default new (class NoteHandler {
public deleteNotebook = async (notebookName: string) => { public deleteNotebook = async (notebookName: string) => {
noteHandlerCache.delete(notebookName); noteHandlerCache.delete(notebookName);
saveCacheToDataStore(notebookName); deleteCacheFromDataStore(notebookName);
Toasts.show({ Toasts.show({
id: Toasts.genId(), id: Toasts.genId(),