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

Function deleteSnippetContent

src/renderer/composables/useSnippets.ts:606–619  ·  view source on GitHub ↗
(snippetId: number, contentId: number)

Source from the content-addressed store, hash-verified

604}
605
606async function deleteSnippetContent(snippetId: number, contentId: number) {
607 try {
608 await api.snippets.deleteSnippetsByIdContentsByContentId(
609 String(snippetId),
610 String(contentId),
611 )
612
613 // Состав списка не меняется — достаточно обновить выбранную запись.
614 await refreshSelectedSnippet()
615 }
616 catch (error) {
617 console.error(error)
618 }
619}
620
621async function addTagToSnippet(tagId: number, snippetId: number) {
622 try {

Callers

nothing calls this directly

Calls 1

refreshSelectedSnippetFunction · 0.85

Tested by

no test coverage detected