* Returns the cached API response if it exists, otherwise fetches the API response from the server and caches it for future use. * @returns {Promise } A Promise that resolves to the cached API response object or the fetched API response object, or null if there was an error.
()
| 298 | * @returns {Promise<object|null>} A Promise that resolves to the cached API response object or the fetched API response object, or null if there was an error. |
| 299 | */ |
| 300 | async function getApiResponse() { |
| 301 | if (!apiResponseCache) { |
| 302 | return await fetchApiResponse(); |
| 303 | } |
| 304 | return apiResponseCache; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Checks if a given UUID is present in the API response. |
no test coverage detected