tsk-209: Refactored the other code

This commit is contained in:
kdeng00
2025-10-22 20:23:18 -04:00
parent 8f65435303
commit 38e1f00311
6 changed files with 382 additions and 383 deletions
+2 -2
View File
@@ -830,7 +830,7 @@ pub mod endpoint {
match repo::song::get_song(&pool, &id).await {
Ok(song) => {
match super::super::coverart::cov_db::get_coverart_with_song_id(&pool, &song.id)
match repo::coverart::get_coverart_with_song_id(&pool, &song.id)
.await
{
Ok(coverart) => {
@@ -849,7 +849,7 @@ pub mod endpoint {
if coverart_path.exists() {
match repo::song::delete_song(&pool, &song.id).await {
Ok(deleted_song) => {
match super::super::coverart::cov_db::delete_coverart(
match repo::coverart::delete_coverart(
&pool,
&coverart.id,
)