Fix wrong table in macro update
This commit is contained in:
parent
98db89ce03
commit
cacd740bd9
5 changed files with 440 additions and 684 deletions
src/db
|
@ -97,7 +97,7 @@ impl DbMacro {
|
|||
conn: &mut PoolConnection<Sqlite>,
|
||||
new_name: &str,
|
||||
) -> Result<DbMacro, DatabaseError> {
|
||||
sqlx::query!("UPDATE relays SET name = ? WHERE id = ?", new_name, self.id,)
|
||||
sqlx::query!("UPDATE macros SET name = ? WHERE id = ?", new_name, self.id,)
|
||||
.execute(conn.deref_mut())
|
||||
.await?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue