You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 beXXXXXXXXXXXXXXXX99
but the one it shows in the console isXXXXXXXXXXXXXXXX00
which makes no sense since I also loggedmessage.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 doconsole.log(<SequelizeProvider>.settings
it shows the row with ID ending in 00 when in reality, as seen in the DB Browser, it ends with 99The text was updated successfully, but these errors were encountered: