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:
parent
60cd63163f
commit
d54c5d4a4b
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ import { ChannelStore, lodash, Toasts, UserStore } from "@webpack/common";
|
|||
import { Channel, Message } from "discord-types/general";
|
||||
|
||||
import { Discord, HolyNotes } from "./types";
|
||||
import { saveCacheToDataStore } from "./utils";
|
||||
import { deleteCacheFromDataStore, saveCacheToDataStore } from "./utils";
|
||||
|
||||
export const noteHandlerCache = new Map();
|
||||
|
||||
|
@ -131,7 +131,7 @@ export default new (class NoteHandler {
|
|||
|
||||
public deleteNotebook = async (notebookName: string) => {
|
||||
noteHandlerCache.delete(notebookName);
|
||||
saveCacheToDataStore(notebookName);
|
||||
deleteCacheFromDataStore(notebookName);
|
||||
|
||||
Toasts.show({
|
||||
id: Toasts.genId(),
|
||||
|
|
Loading…
Reference in a new issue