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

Assets search is not returning the correct number of pages #79

Open
ialberquilla opened this issue Nov 9, 2022 · 0 comments
Open

Assets search is not returning the correct number of pages #79

ialberquilla opened this issue Nov 9, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ialberquilla
Copy link
Contributor

Describe the bug

Assets search is not returning the correct number of pages

Executing in the CLI the command

['ncli', 'assets', 'search', 'Uniswap', '-n', 'Mumbai', '--page', '1', '--json', '--onlyMetadata']

Returns
{"page":1,"totalPages":1,"totalResults":{"value":44,"relation":"eq"},"results":..... The total number of the assets returned is 44 but only one page, and there are 10 items per page, so should be 4 pages.

The same query in the frontend using the SDK returns 4 pages:
image

Maybe the offset is not sent in the SDK?

This is the query sent in the frontend

sdk.assets .query({ offset: pageSize, page, query: query! as any, sort: { created: 'desc' } })

To Reproduce

Steps to reproduce the behavior:
1.
2.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

@aaitor aaitor added the bug Something isn't working label Nov 14, 2022
@aaitor aaitor self-assigned this Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants