Skip to content
New issue

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

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

Already on GitHub? # to your account

Wrong getPrev() with "0|000000:" #25

Open
Roman991 opened this issue Mar 7, 2023 · 1 comment
Open

Wrong getPrev() with "0|000000:" #25

Roman991 opened this issue Mar 7, 2023 · 1 comment

Comments

@Roman991
Copy link

Roman991 commented Mar 7, 2023

The first position is alway "0|000000:"

If u ask getPrev() on this position u will have alway the same "0|000000:"

This leads to subsequent errors as there are equal ranks in db

stackblitz

@kvandake
Copy link
Owner

kvandake commented Apr 6, 2023

Hello!
Usually a first position in rank (in database table) is the middle rank LexoRank.middle();
When you use getPrev for first position you can switch to next bucket. For example rank.inNextBucket

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants