chore: fixed OAS using incorrect store resource (#3138)
This commit is contained in:
@@ -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);
|
||||||
* });
|
* });
|
||||||
|
|||||||
Reference in New Issue
Block a user