Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
maxakuru committed Sep 26, 2024
1 parent ee83a69 commit b2a0df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { resolveConfig } from './config.js';
* @param {Config} config
*/
async function fetchProductCS(sku, config) {
console.log('config: ', config);
const { catalogEndpoint = 'https://catalog-service.adobe.io/graphql' } = config;
const query = getProductQueryCS({ sku });
const resp = await fetch(`${catalogEndpoint}?query=${encodeURIComponent(query)}`, {
Expand Down Expand Up @@ -207,6 +206,7 @@ export default {
try {
const overrides = Object.fromEntries(ctx.url.searchParams.entries());
const config = await resolveConfig(ctx, tenant, overrides);
console.debug('resolved config: ', JSON.stringify(config, undefined, 2));
if (!config) {
return errorResponse(404, 'config not found');
}
Expand Down

0 comments on commit b2a0df7

Please sign in to comment.