tsk-209: Create repo module #216

Merged
kdeng00 merged 8 commits from tsk-209 into main 2025-10-22 20:37:15 -04:00
3 changed files with 1 additions and 6 deletions
Showing only changes of commit 7dfcd78592 - Show all commits
-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
/// Module for song related endpoints
pub mod endpoint {
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(
pool: &sqlx::PgPool,
id: &uuid::Uuid,
) -> Result<uuid::Uuid, sqlx::Error> {
pub async fn wipe_data(pool: &sqlx::PgPool, id: &uuid::Uuid) -> Result<uuid::Uuid, sqlx::Error> {
let result = sqlx::query(
r#"
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),
}
}