This commit is contained in:
JMARyA 2024-10-17 10:47:02 +02:00
parent 8d352838e8
commit 60869448e6
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -128,15 +128,14 @@ impl Track {
let meta = map.get("meta"); let meta = map.get("meta");
sqlx::query( sqlx::query(
"UPDATE track SET artist = $1, album = $2, title = $3, meta = $4 WHERE id = $5; "UPDATE track SET artist = $1, album = $2, title = $3, meta = $4 WHERE id = $5",
",
) )
.bind(artist) .bind(artist)
.bind(album) .bind(album)
.bind(title) .bind(title)
.bind(meta) .bind(meta)
.bind(self.id) .bind(self.id)
.fetch_one(get_pg!()) .execute(get_pg!())
.await .await
.unwrap(); .unwrap();