(noteIds: number[], data: NotesUpdate[])
| 558 | } |
| 559 | |
| 560 | async 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 | |
| 573 | async function updateNoteProperties( |
| 574 | noteId: number, |
no test coverage detected