diff --git a/src/callers/song.rs b/src/callers/song.rs index a92109b..b752536 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -996,6 +996,7 @@ pub mod endpoint { match params.id { Some(id) => match super::song_db::get_song(&pool, &id).await { Ok(song) => { + response.message = String::from(super::super::response::SUCCESSFUL); response.data.push(song); (axum::http::StatusCode::OK, axum::Json(response)) } diff --git a/src/main.rs b/src/main.rs index 7ad0fe5..a122e09 100644 --- a/src/main.rs +++ b/src/main.rs @@ -235,7 +235,7 @@ mod tests { pub async fn migrations(pool: &sqlx::PgPool) { // Run migrations using the sqlx::migrate! macro - // Assumes your migrations are in a ./migrations folder relative to Cargo.toml + // Assumes your test migrations are in a ./test_migrations folder relative to Cargo.toml sqlx::migrate!("./test_migrations") .run(pool) .await