From 3132583ca3bf9a9c30281e50a4aa27e8253be59c Mon Sep 17 00:00:00 2001 From: Diptesh Choudhuri Date: Tue, 3 Dec 2024 07:08:51 +0530 Subject: [PATCH] fix(backend): no separate input for strong app --- crates/models/media/src/lib.rs | 1 - crates/services/importer/src/lib.rs | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/models/media/src/lib.rs b/crates/models/media/src/lib.rs index cad9af8fda..6bbac5a60c 100644 --- a/crates/models/media/src/lib.rs +++ b/crates/models/media/src/lib.rs @@ -963,7 +963,6 @@ pub struct DeployImportJobInput { pub trakt: Option, pub movary: Option, pub generic_json: Option, - pub strong_app: Option, pub url_and_key: Option, pub generic_csv: Option, pub jellyfin: Option, diff --git a/crates/services/importer/src/lib.rs b/crates/services/importer/src/lib.rs index 631d0c5a8b..db14b3b826 100644 --- a/crates/services/importer/src/lib.rs +++ b/crates/services/importer/src/lib.rs @@ -75,7 +75,9 @@ impl ImporterService { let import_id = db_import_job.id.clone(); ryot_log!(debug, "Started import job with id {import_id}"); let maybe_import = match input.source { - ImportSource::StrongApp => strong_app::import(input.strong_app.unwrap(), &self.0).await, + ImportSource::StrongApp => { + strong_app::import(input.generic_csv.unwrap(), &self.0).await + } ImportSource::Mediatracker => mediatracker::import(input.url_and_key.unwrap()).await, ImportSource::Myanimelist => myanimelist::import(input.mal.unwrap()).await, ImportSource::Goodreads => {