Added function call and TODOs
Some checks failed
Rust Build / Check (pull_request) Successful in 31s
Rust Build / Test Suite (pull_request) Successful in 32s
Rust Build / Rustfmt (pull_request) Failing after 25s
Rust Build / Clippy (pull_request) Successful in 33s
Rust Build / build (pull_request) Successful in 40s

This commit is contained in:
2025-07-13 20:02:46 -04:00
parent b16102de4c
commit eed7b329a3

View File

@@ -88,8 +88,21 @@ async fn some_work(
{
Ok(_inner_response) => {
println!("Response: {_inner_response:?}");
// TODO: Do not hard code this. Check if one of the existing
// endpoints already have the user_id
let user_id = uuid::Uuid::new_v4();
// TODO: Place this somewhere else
let song_type = String::from("flac");
match the_rest::create_song(app_base_url, &metadata, &user_id, &song_type).await {
Ok(_) => {
Ok(())
}
Err(err) => {
Err(std::io::Error::other(err.to_string()))
}
}
}
Err(err) => Err(std::io::Error::other(err.to_string())),
}
}