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

Function updateNotes

src/renderer/composables/spaces/notes/useNotes.ts:560–571  ·  view source on GitHub ↗
(noteIds: number[], data: NotesUpdate[])

Source from the content-addressed store, hash-verified

558}
559
560async function updateNotes(noteIds: number[], data: NotesUpdate[]) {
561 markPersistedStorageMutation()
562
563 await Promise.all(
564 noteIds.map((noteId, index) =>
565 api.notes.patchNotesById(String(noteId), data[index]),
566 ),
567 )
568
569 await getNotes(queryByLibraryOrFolderOrSearch.value)
570 await refreshSelectedNote()
571}
572
573async function updateNoteProperties(
574 noteId: number,

Callers 2

onExternalDropFunction · 0.85
deleteSelectedNotesFunction · 0.85

Calls 3

refreshSelectedNoteFunction · 0.85
getNotesFunction · 0.70

Tested by

no test coverage detected