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

Function setProgramDesc

src/Data/ProgramData.js:236–246  ·  view source on GitHub ↗
(programId, programDesc)

Source from the content-addressed store, hash-verified

234}
235
236export async function setProgramDesc(programId, programDesc) {
237 /*
238 * Set the description of the program to the local storage (i.e. localforage.getItem(`${programId}-Desc`))
239 * @param programId [String]: programId
240 * @param programDesc [String]: description of the program
241 */
242 if (programDesc === null || programDesc === undefined) {
243 return;
244 }
245 await writeCacheValue(programDescCacheKey(programId), programDesc);
246}
247
248export async function setProgramContent(program) {
249 /*

Callers 1

setProgramContentFunction · 0.85

Calls 2

writeCacheValueFunction · 0.90
programDescCacheKeyFunction · 0.85

Tested by

no test coverage detected