userData: INSERT -> REPLACE
This commit is contained in:
parent
fa05d104d3
commit
141aea9a50
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ hf.database.run(
|
|||
function setUserData(id, key, value) {
|
||||
return new Promise((resolve, reject) => {
|
||||
hf.database.run(
|
||||
"INSERT INTO user_data VALUES ($key,$value)",
|
||||
"REPLACE INTO user_data VALUES ($key,$value)",
|
||||
{
|
||||
$value: value,
|
||||
$key: `${id}[${key}]`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue