-
Notifications
You must be signed in to change notification settings - Fork 124
Description
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