mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-11 10:26:21 +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 { 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(),
|
||||||
|
|
Loading…
Reference in a new issue