@@ -511,11 +511,11 @@ pub mod endpoint {
|
|||||||
println!("Valid song");
|
println!("Valid song");
|
||||||
|
|
||||||
match repo::data::get_with_song_queue_id(&pool, &song_queue_id).await {
|
match repo::data::get_with_song_queue_id(&pool, &song_queue_id).await {
|
||||||
Ok((id, file_key, _bucket, _region, _)) => {
|
Ok((_id, file_key, _bucket, _region, _)) => {
|
||||||
match lr.delete(&file_key).await {
|
match lr.delete(&file_key).await {
|
||||||
Ok(_response) => {
|
Ok(_response) => {
|
||||||
let data = labyrinth::Data {
|
let data = labyrinth::Data {
|
||||||
raw_data: raw_data,
|
raw_data,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -538,8 +538,8 @@ pub mod endpoint {
|
|||||||
{
|
{
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
response.message =
|
response.message =
|
||||||
String::from(super::super::super::response::SUCCESSFUL);
|
super::super::super::response::SUCCESSFUL.to_string();
|
||||||
response.data.push(id);
|
response.data.push(song_queue_id);
|
||||||
(
|
(
|
||||||
axum::http::StatusCode::OK,
|
axum::http::StatusCode::OK,
|
||||||
axum::Json(response),
|
axum::Json(response),
|
||||||
@@ -548,9 +548,9 @@ pub mod endpoint {
|
|||||||
Err(err) => {
|
Err(err) => {
|
||||||
response.message = err.to_string();
|
response.message = err.to_string();
|
||||||
(
|
(
|
||||||
axum::http::StatusCode::INTERNAL_SERVER_ERROR,
|
axum::http::StatusCode::INTERNAL_SERVER_ERROR,
|
||||||
axum::Json(response),
|
axum::Json(response),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user