MCPcopy Create free account
hub / github.com/massCodeIO/massCode / deleteNotes

Function deleteNotes

src/renderer/composables/spaces/notes/useNotes.ts:592–600  ·  view source on GitHub ↗
(noteIds: number[])

Source from the content-addressed store, hash-verified

590}
591
592async function deleteNotes(noteIds: number[]) {
593 markPersistedStorageMutation()
594
595 await Promise.all(
596 noteIds.map(noteId => api.notes.deleteNotesById(String(noteId))),
597 )
598
599 await getNotes(queryByLibraryOrFolderOrSearch.value)
600}
601
602async function deleteSelectedNotes(fallbackNote?: NoteRecord) {
603 const { confirm } = useDialog()

Callers 1

deleteSelectedNotesFunction · 0.85

Calls 2

getNotesFunction · 0.70

Tested by

no test coverage detected