Song queue #258
@@ -500,7 +500,7 @@ 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 {
|
||||||
@@ -520,7 +520,7 @@ pub mod endpoint {
|
|||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
match repo::data::update_file_key(
|
match repo::data::update_file_key(
|
||||||
&pool,
|
&pool,
|
||||||
&song_queue_id,
|
&id,
|
||||||
&new_file_key,
|
&new_file_key,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
|
|||||||
Reference in New Issue
Block a user