tsk-209: Code formatting

This commit is contained in:
kdeng00
2025-10-22 20:05:12 -04:00
parent 227d25fa93
commit 7dfcd78592
3 changed files with 1 additions and 6 deletions
-1
View File
@@ -202,7 +202,6 @@ pub mod response {
// TODO: Might make a distinction between year and date in a song's tag at some point // TODO: Might make a distinction between year and date in a song's tag at some point
/// Module for song related endpoints /// Module for song related endpoints
pub mod endpoint { pub mod endpoint {
use axum::{Json, http::StatusCode, response::IntoResponse}; use axum::{Json, http::StatusCode, response::IntoResponse};
+1 -4
View File
@@ -253,10 +253,7 @@ pub async fn get_song_queue(
} }
} }
pub async fn wipe_data( pub async fn wipe_data(pool: &sqlx::PgPool, id: &uuid::Uuid) -> Result<uuid::Uuid, sqlx::Error> {
pool: &sqlx::PgPool,
id: &uuid::Uuid,
) -> Result<uuid::Uuid, sqlx::Error> {
let result = sqlx::query( let result = sqlx::query(
r#" r#"
UPDATE "songQueue" SET data = NULL WHERE id = $1 RETURNING id; UPDATE "songQueue" SET data = NULL WHERE id = $1 RETURNING id;
-1
View File
@@ -345,4 +345,3 @@ pub async fn delete_song(
Err(_) => Err(sqlx::Error::RowNotFound), Err(_) => Err(sqlx::Error::RowNotFound),
} }
} }