Added auth

This commit is contained in:
Connor Johnstone
2026-03-19 14:02:19 -04:00
parent 2592651c9a
commit 0e5195e64c
2 changed files with 10 additions and 7 deletions

View File

@@ -240,7 +240,7 @@ impl fmt::Display for SyncStats {
/// Finds all Track-type Wanted items and enqueues them for download,
/// skipping any that already have a queue entry.
pub async fn sync_wanted_to_queue(conn: &DatabaseConnection, dry_run: bool) -> DlResult<SyncStats> {
let wanted = queries::wanted::list(conn, Some(WantedStatus::Wanted)).await?;
let wanted = queries::wanted::list(conn, Some(WantedStatus::Wanted), None).await?;
let mut stats = SyncStats::default();
for item in &wanted {

View File

@@ -226,12 +226,15 @@ async fn test_wanted_item_status_updated_on_download() {
// Create a wanted item
let wanted = queries::wanted::add(
db.conn(),
ItemType::Track,
"Wanted Song",
None,
None,
None,
None,
queries::wanted::AddWantedItem {
item_type: ItemType::Track,
name: "Wanted Song",
musicbrainz_id: None,
artist_id: None,
album_id: None,
track_id: None,
user_id: None,
},
)
.await
.unwrap();