Fix wrong table in macro update
This commit is contained in:
parent
98db89ce03
commit
cacd740bd9
5 changed files with 4 additions and 2 deletions
Binary file not shown.
BIN
Cargo.lock
generated
BIN
Cargo.lock
generated
Binary file not shown.
|
@ -23,7 +23,7 @@ chrono = { version = "0.4", features = ["serde"] }
|
|||
|
||||
sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio", "macros", "chrono"] }
|
||||
libsqlite3-sys = { version = "*", features = ["bundled"] }
|
||||
uuid = "1.6"
|
||||
uuid = { version = "1.8", features = ["v4"] }
|
||||
futures = "0.3"
|
||||
libc = "0.2"
|
||||
|
||||
|
|
2
Makefile
2
Makefile
|
@ -1,3 +1,5 @@
|
|||
export DATABASE_URL=sqlite://${PWD}/emgauwa-dev.sqlite
|
||||
|
||||
sqlx:
|
||||
cargo sqlx database drop -y
|
||||
cargo sqlx database create
|
||||
|
|
|
@ -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…
Reference in a new issue