From a452f85c384fd7ee1d99525d3b443eb5a326bd19 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Tue, 29 Jul 2025 20:39:21 -0400 Subject: [PATCH] Changes to code Fixing errors --- src/callers/coverart.rs | 2 +- src/callers/song.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callers/coverart.rs b/src/callers/coverart.rs index 633af52..4e7a155 100644 --- a/src/callers/coverart.rs +++ b/src/callers/coverart.rs @@ -420,7 +420,7 @@ pub mod cov_db { pub async fn delete_coverart(pool: &sqlx::PgPool, id: &uuid::Uuid) -> Result { let result = sqlx::query( r#" - DELETE FROM "coverrt" + DELETE FROM "coverart" WHERE id = $1 RETURNING id, title, path, song_id "# diff --git a/src/callers/song.rs b/src/callers/song.rs index 46c4284..ba14736 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -357,7 +357,7 @@ pub mod song_db { r#" DELETE FROM "song" WHERE id = $1 - RETURNING id, title, artist, album_artist, genre, year, disc, track_count, disc_count, duration, audio_type, date_created, filename, directory, user_id + RETURNING id, title, artist, album, album_artist, genre, year, disc, track, track_count, disc_count, duration, audio_type, date_created, filename, directory, user_id "#, ) .bind(id)