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

insert error #2

Open
Guillaume-favier opened this issue May 21, 2021 · 1 comment
Open

insert error #2

Guillaume-favier opened this issue May 21, 2021 · 1 comment

Comments

@Guillaume-favier
Copy link

I just want to do an insert and this append

(node:16980) UnhandledPromiseRejectionWarning: TypeError: value.replace is not a function
    at QueryParser.quote (C:\Users\favie\Documents\programation\testgenshin\node_modules\jsondb-js\src\QueryParser.js:70:23)
    at Function.JSONDB.quote (C:\Users\favie\Documents\programation\testgenshin\node_modules\jsondb-js\src\JSONDB.js:293:49)
    at addPlayer (C:\Users\favie\Documents\programation\testgenshin\index.js:74:18)
    at main (C:\Users\favie\Documents\programation\testgenshin\index.js:91:10)
(Use `node --trace-warnings ...` to show where the warning was created)
@Guillaume-favier
Copy link
Author

it's because the function QueryParser.prototype.quote assume that the parametter is a string

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