Skip to content

Commit

Permalink
fix(backend): no separate input for strong app
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Dec 3, 2024
1 parent a2fdeac commit 3132583
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion crates/models/media/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,6 @@ pub struct DeployImportJobInput {
pub trakt: Option<DeployTraktImportInput>,
pub movary: Option<DeployMovaryImportInput>,
pub generic_json: Option<DeployJsonImportInput>,
pub strong_app: Option<DeployGenericCsvImportInput>,
pub url_and_key: Option<DeployUrlAndKeyImportInput>,
pub generic_csv: Option<DeployGenericCsvImportInput>,
pub jellyfin: Option<DeployUrlAndKeyAndUsernameImportInput>,
Expand Down
4 changes: 3 additions & 1 deletion crates/services/importer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 3132583

Please sign in to comment.