Skip to content

[dove] SQLite 3 incompatibility with verifyChanges ? #197

Open
@mdartic

Description

@mdartic

In dove version, but maybe in previous ones, I'm trying to use a SQLite 3 database.
This issue is for SQLite 3, and concerns verifyChanges.

When the user verify its signup, fam will use the eraseVerifyPropsSetPassword function to merge actual verifyChanges to new properties if needed.

In SQLite 3, the verifyChanges arrives in the eraseVerifyPropsSetPassword as a string, not an object.

In JavaScript,

const newObject = Object.assign({}, "{}")
console.log(newObject) // { 0: "{", 1: "}" }

After that, the query run against the database will look like update users set 0 = '{', 1 = '}', ....

That's not working...

I don't know how to handle this properly,
but before discussing the way we have to fix it,
am I the only one with this issue ?

This issue doesn't occur with PostGreSQL.

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