update UPAPI calls

This commit is contained in:
Tara Zou
2024-04-26 14:15:59 -04:00
parent d7718c42da
commit 6ba2ff6000
5 changed files with 48 additions and 31 deletions

View File

@@ -181,15 +181,10 @@ export async function getOfferingIdsRequest<T>({
throw new Error("No catalog API key provided");
}
// TODO: delete after test
// console.log("config CATALOG_API_KEY: " + configContext.CATALOG_API_KEY);
// End Test
const response = await window.fetch(url.href, {
method,
headers: {
// [HttpHeaders.xAPIKey]: configContext.CATALOG_API_KEY,
[HttpHeaders.xAPIKey]: "",
[HttpHeaders.xAPIKey]: configContext.CATALOG_API_KEY,
},
body: requestBody ? JSON.stringify(requestBody) : undefined,
});