chore: fixed OAS using incorrect store resource (#3138)

This commit is contained in:
Shahed Nasser
2023-01-30 14:41:22 +02:00
committed by GitHub
parent 2551fe0b93
commit e3dcf4fd75
2 changed files with 2 additions and 2 deletions
@@ -89,7 +89,7 @@ import { IsType } from "../../../../utils/validators/is-type"
* source: | * source: |
* import Medusa from "@medusajs/medusa-js" * import Medusa from "@medusajs/medusa-js"
* const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 }) * const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
* medusa.store.productTags.list() * medusa.productTags.list()
* .then(({ product_tags }) => { * .then(({ product_tags }) => {
* console.log(product_tags.length); * console.log(product_tags.length);
* }); * });
@@ -92,7 +92,7 @@ import ProductTypeService from "../../../../services/product-type"
* import Medusa from "@medusajs/medusa-js" * import Medusa from "@medusajs/medusa-js"
* const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 }) * const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
* // must be previously logged in or use api token * // must be previously logged in or use api token
* medusa.store.productTypes.list() * medusa.productTypes.list()
* .then(({ product_types }) => { * .then(({ product_types }) => {
* console.log(product_types.length); * console.log(product_types.length);
* }); * });