vholik / medusa-custom-attributes

Plugin that extends MedusaJs with custom attributes API
88 stars 20 forks source link

I have admin API error on product list page #17

Closed ARA1985 closed 6 months ago

ARA1985 commented 8 months ago

request "GET /admin/products?fields=id%2Ctitle%2Cthumbnail%2Cstatus%2Chandle%2Ccollection_id&expand=variants%2Coptions%2Cvariants.prices%2Cvariants.options%2Ccollection%2Ctags%2Ctype%2Cimages%2Csales_channels&is_giftcard=false HTTP/1.1"

error: error: productRepo.findWithRelationsAndCount is not a function TypeError: productRepo.findWithRelationsAndCount is not a function at ProductService.listAndCount (/Applications/MAMP/htdocs/japan-new/japan-store/node_modules/medusa-custom-attributes/dist/services/product.js:60:51) at /Applications/MAMP/htdocs/japan-new/japan-store/node_modules/@medusajs/medusa/dist/api/routes/admin/products/list-products.js:344:57

I am using "@medusajs/medusa": "1.20.1", "medusa-custom-attributes": "^1.0.14",

vholik commented 7 months ago

Try to upgrade plugin version and give me feedback on that