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

This commit is contained in:
Shahed Nasser
2023-01-30 15:24:26 +02:00
committed by GitHub
parent 3566bccb76
commit 771c54952a
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
* });

View File

@@ -89,7 +89,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);
* });