(program)
| 217 | }); |
| 218 | await Promise.all([ |
| 219 | removeCacheValue("programs"), |
| 220 | ...(content?.ProgramID ? [removeCacheValue(programDescCacheKey(content.ProgramID))] : []), |
| 221 | ]); |
| 222 | } |
| 223 | |
| 224 | function normalizeQueryValues(value) { |
| 225 | const values = typeof value === 'string' ? value.split(',').filter(Boolean) : value; |
| 226 | return Array.isArray(values) && values.length === 0 ? null : values; |
| 227 | } |
| 228 | |
| 229 | function programDescCacheKey(programId) { |
| 230 | return `${programId}-Desc`; |
| 231 | } |
| 232 | |
| 233 | function programIdFromDescCacheKey(key) { |
| 234 | return key.slice(0, -"-Desc".length); |
| 235 | } |
no test coverage detected