Queued song linked to user

This commit is contained in:
kdeng00
2025-08-28 12:59:05 -04:00
parent 9d998938b2
commit 5716046e34
3 changed files with 49 additions and 3 deletions
+11 -1
View File
@@ -430,16 +430,26 @@ impl CommitManager {
match up.queue_song(token, song).await {
Ok(id) => {
println!("Song queued");
queued_song_id = id;
}
Err(err) => {
eprintln!("Error: {err:?}");
return Err(std::io::Error::other(err.to_string()));
}
}
println!("Queued song Id: {queued_song_id:?}");
match up.link_user_to_queued_song(token, &queued_song_id).await {
Ok(_) => {
println!("Queued song linked to user");
}
Err(err) => {
return Err(std::io::Error::other(err.to_string()));
}
}
Ok(())
}