Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

querying product categories by limit results in inconsistent results #3906

Closed
SGFGOV opened this issue Apr 24, 2023 · 2 comments
Closed

querying product categories by limit results in inconsistent results #3906

SGFGOV opened this issue Apr 24, 2023 · 2 comments

Comments

@SGFGOV
Copy link
Contributor

SGFGOV commented Apr 24, 2023

Bug report

When sending a request to

const medusaCategories = (
await this.medusaService.client.productCategories.list({
limit: 100,
})
).product_categories;

it returns only 83 categories

whereas

When sending a request to

const medusaCategories = (
await this.medusaService.client.productCategories.list({
limit: 10000,
})
).product_categories;

it returns 143 categories

Describe the bug

A clear and concise description of what the bug is.

System information

Medusa version (including plugins): 1.8.2
Node.js version:
Database:
Operating system:
Browser (if relevant):

Steps to reproduce the behavior

Expected behavior

It should return 100 categories or 143 categories.

@olivermrbl
Copy link
Contributor

Please see #3914 for details on the issue. A fix will be part of next release which is shipping today.

@SGFGOV
Copy link
Contributor Author

SGFGOV commented Apr 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants