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

SequelizeProvider not retrieving item property correctly #219

Open
Viriatto opened this issue Jun 18, 2021 · 0 comments
Open

SequelizeProvider not retrieving item property correctly #219

Viriatto opened this issue Jun 18, 2021 · 0 comments

Comments

@Viriatto
Copy link

I am setting a value using my created SequelizeProvider for example <SequelizeProvider>.settings.set(message.guild.id, 'property', 'value')

It creates the row correctly in the database with the correct fields, but when I try to get any value from it based on the guildID like <SequelizeProvider>.settings.get(message.guild.id, 'property') it always returns undefined as if there was no row with the ID message.guild.id even though it is exactly the same value as the one used in (...).set()

I then did a console.log(<SequelizeProvider>.settings) to check the rows and I noticed it had the wrong guildID, the correct ID would be XXXXXXXXXXXXXXXX99 but the one it shows in the console is XXXXXXXXXXXXXXXX00 which makes no sense since I also logged message.guild.id and it shows the correct one (ends with 99).

I then decided to open the database with DB Browser and it has the correct guild ID! (Finishing with 99). So I don't understand why when I use (...).get() it doesn't get the corresponding value and also when I do console.log(<SequelizeProvider>.settings it shows the row with ID ending in 00 when in reality, as seen in the DB Browser, it ends with 99

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

No branches or pull requests

1 participant