(programId, isRefresh = false)
| 194 | } |
| 195 | |
| 196 | export async function getProgramContent(programId, isRefresh = false) { |
| 197 | /* |
| 198 | * Get the program (with description) from the server or local storage by programId |
| 199 | * @param programId [String]: programId |
| 200 | * @param isRefresh [Boolean]: whether to refresh the data |
| 201 | * @return: program (with description) |
| 202 | */ |
| 203 | const program = await getProgram(programId, isRefresh); |
| 204 | const programDesc = await getProgramDesc(programId, isRefresh); |
| 205 | return {...program, 'description': programDesc}; |
| 206 | } |
| 207 | |
| 208 | export async function setPrograms(programs) { |
| 209 | /* |
no test coverage detected