MCPcopy Index your code
hub / github.com/OpenSIST/OpenSIST.github.io / uncollectProgram

Function uncollectProgram

src/Data/UserData.js:407–415  ·  view source on GitHub ↗
(programID)

Source from the content-addressed store, hash-verified

405}
406
407export async function uncollectProgram(programID) {
408 await apiRequest(UNCOLLECT_PROGRAM, {body: {ProgramID: programID}});
409
410 const metadata = await getMetadata();
411 await setMetadata({
412 ...metadata,
413 ProgramCollection: (metadata.ProgramCollection ?? []).filter(id => id !== programID),
414 });
415}

Callers 3

actionFunction · 0.90
actionFunction · 0.90
actionFunction · 0.90

Calls 3

apiRequestFunction · 0.90
getMetadataFunction · 0.85
setMetadataFunction · 0.85

Tested by

no test coverage detected