(program)
| 246 | } |
| 247 | |
| 248 | export 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 | |
| 261 | export async function addModifyProgram(requestBody) { |
| 262 | /* |
no test coverage detected