fix(client >> storage): fixed sql query to enable entry overriding
This commit is contained in:
parent
9bac0c2a78
commit
af3952cbe6
|
@ -53,7 +53,7 @@ impl Storage for StandardStorage {
|
||||||
return Err(StorageError::IdCollision(id.to_string()));
|
return Err(StorageError::IdCollision(id.to_string()));
|
||||||
}
|
}
|
||||||
|
|
||||||
sqlx::query(r#"INSERT INTO Entries VALUES (?, ?);"#)
|
sqlx::query(r#"INSERT OR REPLACE INTO Entries VALUES (?, ?);"#)
|
||||||
.bind(id)
|
.bind(id)
|
||||||
.bind(&data)
|
.bind(&data)
|
||||||
.execute(&self.pool)
|
.execute(&self.pool)
|
||||||
|
|
Loading…
Reference in New Issue