From e3dcf4fd759a7393c223b5255e2f302e2cbdb361 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 30 Jan 2023 14:41:22 +0200 Subject: [PATCH] chore: fixed OAS using incorrect store resource (#3138) --- .../src/api/routes/store/product-tags/list-product-tags.ts | 2 +- .../src/api/routes/store/product-types/list-product-types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/medusa/src/api/routes/store/product-tags/list-product-tags.ts b/packages/medusa/src/api/routes/store/product-tags/list-product-tags.ts index 379268bb92..50a9769902 100644 --- a/packages/medusa/src/api/routes/store/product-tags/list-product-tags.ts +++ b/packages/medusa/src/api/routes/store/product-tags/list-product-tags.ts @@ -89,7 +89,7 @@ import { IsType } from "../../../../utils/validators/is-type" * source: | * import Medusa from "@medusajs/medusa-js" * const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 }) - * medusa.store.productTags.list() + * medusa.productTags.list() * .then(({ product_tags }) => { * console.log(product_tags.length); * }); diff --git a/packages/medusa/src/api/routes/store/product-types/list-product-types.ts b/packages/medusa/src/api/routes/store/product-types/list-product-types.ts index 065a0dc960..b017720e3c 100644 --- a/packages/medusa/src/api/routes/store/product-types/list-product-types.ts +++ b/packages/medusa/src/api/routes/store/product-types/list-product-types.ts @@ -92,7 +92,7 @@ import ProductTypeService from "../../../../services/product-type" * import Medusa from "@medusajs/medusa-js" * const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 }) * // must be previously logged in or use api token - * medusa.store.productTypes.list() + * medusa.productTypes.list() * .then(({ product_types }) => { * console.log(product_types.length); * });