(tagId: number, snippetId: number)
| 619 | } |
| 620 | |
| 621 | async function addTagToSnippet(tagId: number, snippetId: number) { |
| 622 | try { |
| 623 | await api.snippets.postSnippetsByIdTagsByTagId( |
| 624 | String(snippetId), |
| 625 | String(tagId), |
| 626 | ) |
| 627 | await getSnippets(queryByLibraryOrFolderOrSearch.value) |
| 628 | await refreshSelectedSnippet() |
| 629 | } |
| 630 | catch (error) { |
| 631 | console.error(error) |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | async function deleteTagFromSnippet(tagId: number, snippetId: number) { |
| 636 | try { |
nothing calls this directly
no test coverage detected