(id: String, songs: Vec<Song>)
| 328 | |
| 329 | #[tracing::instrument(level = "debug", skip(id, songs))] |
| 330 | pub fn add_to_playlist(id: String, songs: Vec<Song>) { |
| 331 | spawn_local(async move { |
| 332 | let res = super::invoke::add_to_playlist(id, songs).await; |
| 333 | if res.is_err() { |
| 334 | tracing::error!("Error adding to playlist: {:?}", res); |
| 335 | } |
| 336 | }); |
| 337 | } |
| 338 | |
| 339 | #[tracing::instrument(level = "debug", skip(playlist))] |
| 340 | pub fn create_playlist(playlist: QueryablePlaylist, songs: Option<Vec<Song>>) { |
no outgoing calls
no test coverage detected