More cleanup

This commit is contained in:
kdeng00
2025-07-25 18:15:36 -04:00
parent 2b3afa4ff5
commit 402d65efe9
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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))
}
+1 -1
View File
@@ -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