Cleanup
This commit is contained in:
@@ -63,7 +63,6 @@ async fn wipe_data_from_queues(app_base_url: &String, song_queue_id: &uuid::Uuid
|
|||||||
Ok(response) => match response.json::<the_rest::wipe_data::song_queue::response::Response>().await {
|
Ok(response) => match response.json::<the_rest::wipe_data::song_queue::response::Response>().await {
|
||||||
Ok(_resp) => {
|
Ok(_resp) => {
|
||||||
println!("Wiped data from song queue");
|
println!("Wiped data from song queue");
|
||||||
println!("Resp: {_resp:?}");
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
// TODO: Refactor this file when this app is functional
|
// TODO: Refactor this file when this app is functional
|
||||||
|
|
||||||
// TODO: Create song
|
|
||||||
pub mod create_song {
|
pub mod create_song {
|
||||||
pub async fn create(
|
pub async fn create(
|
||||||
base_url: &String,
|
base_url: &String,
|
||||||
@@ -44,7 +43,6 @@ pub mod create_song {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Create coverart
|
|
||||||
pub mod create_coverart {
|
pub mod create_coverart {
|
||||||
|
|
||||||
pub async fn create(
|
pub async fn create(
|
||||||
@@ -77,7 +75,6 @@ pub mod create_coverart {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub mod wipe_data {
|
pub mod wipe_data {
|
||||||
// TODO: Wipe data from queued song
|
|
||||||
pub mod song_queue {
|
pub mod song_queue {
|
||||||
pub async fn wipe_data(base_url: &String, song_queue_id: &uuid::Uuid) -> Result<reqwest::Response, reqwest::Error> {
|
pub async fn wipe_data(base_url: &String, song_queue_id: &uuid::Uuid) -> Result<reqwest::Response, reqwest::Error> {
|
||||||
let client = reqwest::Client::builder().build()?;
|
let client = reqwest::Client::builder().build()?;
|
||||||
|
Reference in New Issue
Block a user