From fa9317ec118afab6fa1ea70eb4fe73823dd684aa Mon Sep 17 00:00:00 2001 From: goncy Date: Wed, 11 Aug 2021 10:43:58 -0300 Subject: [PATCH] Update site info --- framework/ordercloud/api/operations/get-site-info.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/ordercloud/api/operations/get-site-info.ts b/framework/ordercloud/api/operations/get-site-info.ts index 4914bb335..5a135048f 100644 --- a/framework/ordercloud/api/operations/get-site-info.ts +++ b/framework/ordercloud/api/operations/get-site-info.ts @@ -25,14 +25,14 @@ export default function getSiteInfoOperation({ // Get fetch from the config const { fetch } = commerce.getConfig(config) - // Get a single product + // Get list of categories const rawCategories: RawCategory[] = await fetch<{ Items: RawCategory[] }>( 'GET', `/me/categories` ).then((response) => response.Items) return { - // Normalize product to commerce schema + // Normalize categories categories: rawCategories.map((category) => ({ id: category.ID, name: category.Name,