This commit is contained in:
Simon Cambier
2022-06-19 20:14:55 +02:00
parent 08139e7785
commit a923b68b88
2 changed files with 4 additions and 4 deletions

View File

@@ -47,8 +47,8 @@ export function getNoteFromCache(key: string): IndexedNote | undefined {
export function getNonExistingNotesFromCache(): IndexedNote[] {
return Object.values(notesCache).filter(note => note.doesNotExist)
}
export function addNoteToCache(key: string, note: IndexedNote): void {
notesCache[key] = note
export function addNoteToCache(filename: string, note: IndexedNote): void {
notesCache[filename] = note
}
export function removeNoteFromCache(key: string): void {
delete notesCache[key]