+
Skip to content

SequelizeProvider not retrieving item property correctly #219

@jpteixeira99

Description

@jpteixeira99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载