userData: INSERT -> REPLACE

This commit is contained in:
Cynthia Foxwell 2021-07-24 12:55:39 -06:00
parent fa05d104d3
commit 141aea9a50
1 changed files with 1 additions and 1 deletions

View File

@ -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}]`,