(snippetIds: number[], data: SnippetsUpdate[])
| 471 | } |
| 472 | |
| 473 | async function updateSnippets(snippetIds: number[], data: SnippetsUpdate[]) { |
| 474 | markPersistedStorageMutation() |
| 475 | await Promise.all( |
| 476 | snippetIds.map((snippetId, index) => |
| 477 | api.snippets.patchSnippetsById(String(snippetId), data[index]), |
| 478 | ), |
| 479 | ) |
| 480 | await getSnippets(queryByLibraryOrFolderOrSearch.value) |
| 481 | await refreshSelectedSnippet() |
| 482 | } |
| 483 | |
| 484 | async function updateSnippetContent( |
| 485 | snippetId: number, |
no test coverage detected