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

leaderboard item sort error #62

Closed
falcao-g opened this issue Aug 17, 2023 · 0 comments · Fixed by #63
Closed

leaderboard item sort error #62

falcao-g opened this issue Aug 17, 2023 · 0 comments · Fixed by #63
Labels
bug Something isn't working
Milestone

Comments

@falcao-g
Copy link
Owner

Description of the bug

the /leaderboard item has a issue when the user sends a item name valid but different from the item key in the items.jsom, to fix this we need to first get the item key using getItem() and afterwards verify that the key is valid (!== undefined)and finally send the query with the item key given

Steps to reproduce

use /leaderboard item and input im the item field "pedra" for example, falbot executes the command because pedra is a valid item (rock), but it sends the query to mongodb with the text the user gave it

Media, if necessary

No response

@falcao-g falcao-g added this to the 2.10 milestone Aug 17, 2023
@falcao-g falcao-g added the bug Something isn't working label Aug 18, 2023
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

Successfully merging a pull request may close this issue.

1 participant