Changes to code

Fixing errors
This commit is contained in:
kdeng00
2025-07-29 20:39:21 -04:00
parent 9367285098
commit a452f85c38
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -420,7 +420,7 @@ pub mod cov_db {
pub async fn delete_coverart(pool: &sqlx::PgPool, id: &uuid::Uuid) -> Result<icarus_models::coverart::CoverArt, sqlx::Error> { pub async fn delete_coverart(pool: &sqlx::PgPool, id: &uuid::Uuid) -> Result<icarus_models::coverart::CoverArt, sqlx::Error> {
let result = sqlx::query( let result = sqlx::query(
r#" r#"
DELETE FROM "coverrt" DELETE FROM "coverart"
WHERE id = $1 WHERE id = $1
RETURNING id, title, path, song_id RETURNING id, title, path, song_id
"# "#
+1 -1
View File
@@ -357,7 +357,7 @@ pub mod song_db {
r#" r#"
DELETE FROM "song" DELETE FROM "song"
WHERE id = $1 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) .bind(id)