Removing code
pr CI / Test Suite (pull_request) Successful in 2m20s

This commit is contained in:
2026-08-14 08:24:46 -04:00
parent 5cb3af2870
commit 6493735934
2 changed files with 5 additions and 14 deletions
+1 -7
View File
@@ -197,13 +197,7 @@ pub mod endpoint {
match lr.upload(&file_path, &data).await { match lr.upload(&file_path, &data).await {
Ok(_res) => { Ok(_res) => {
match repo::coverart::insert( match repo::coverart::insert(&pool, &file_type.file_type).await {
&pool,
&data.raw_data,
&file_type.file_type,
)
.await
{
Ok(id) => { Ok(id) => {
println!("Inserting queued data"); println!("Inserting queued data");
match repo::data::queue::coverart::insert( match repo::data::queue::coverart::insert(
+4 -7
View File
@@ -1,16 +1,11 @@
use sqlx::Row; use sqlx::Row;
pub async fn insert( pub async fn insert(pool: &sqlx::PgPool, file_type: &str) -> Result<uuid::Uuid, sqlx::Error> {
pool: &sqlx::PgPool,
data: &Vec<u8>,
file_type: &str,
) -> Result<uuid::Uuid, sqlx::Error> {
let result = sqlx::query( let result = sqlx::query(
r#" r#"
INSERT INTO "coverartQueue" (data, file_type) VALUES($1, $2) RETURNING id; INSERT INTO "coverartQueue" (file_type) VALUES($1) RETURNING id;
"#, "#,
) )
.bind(data)
.bind(file_type) .bind(file_type)
.fetch_one(pool) .fetch_one(pool)
.await .await
@@ -121,6 +116,7 @@ pub async fn get_coverart_queue_with_song_queue_id(
} }
} }
/*
pub async fn get_coverart_queue_data_with_id( pub async fn get_coverart_queue_data_with_id(
pool: &sqlx::PgPool, pool: &sqlx::PgPool,
id: &uuid::Uuid, id: &uuid::Uuid,
@@ -195,3 +191,4 @@ pub async fn wipe_data(
Err(_) => Err(sqlx::Error::RowNotFound), Err(_) => Err(sqlx::Error::RowNotFound),
} }
} }
*/