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

Function setProgramContent

src/Data/ProgramData.js:248–259  ·  view source on GitHub ↗
(program)

Source from the content-addressed store, hash-verified

246}
247
248export async function setProgramContent(program) {
249 /*
250 * Set the program (with description) to the local storage (i.e. localforage.getItem('programs') and localforage.getItem(`${programId}-Desc`))
251 * @param program [Object]: program (with description)
252 */
253 if (!program) {
254 return;
255 }
256 const {Description, ...summary} = program;
257 await setProgramDesc(program.ProgramID, Description);
258 await setProgram(summary);
259}
260
261export async function addModifyProgram(requestBody) {
262 /*

Callers 1

addModifyProgramFunction · 0.85

Calls 2

setProgramDescFunction · 0.85
setProgramFunction · 0.85

Tested by

no test coverage detected