Skip to content

Commit

Permalink
refactor(services/importer): change name of function
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Nov 27, 2024
1 parent 3eefcab commit 8fa6c01
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/services/importer/src/audiobookshelf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ where
== item.media.as_ref().unwrap().ebook_format
{
match &metadata.isbn {
Some(isbn) => match utils::get_identifier_from_isbn(
Some(isbn) => match utils::get_identifier_from_book_isbn(
isbn,
google_books_service,
open_library_service,
Expand Down
2 changes: 1 addition & 1 deletion crates/services/importer/src/goodreads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub async fn import(
continue;
}
let Some((identifier, source)) =
utils::get_identifier_from_isbn(&isbn, google_books_service, open_library_service)
utils::get_identifier_from_book_isbn(&isbn, google_books_service, open_library_service)
.await
else {
failed_items.push(ImportFailedItem {
Expand Down
2 changes: 1 addition & 1 deletion crates/services/importer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pub mod utils {
DateTime::<Utc>::from_naive_utc_and_offset(date_time, Utc) - offset
}

pub async fn get_identifier_from_isbn(
pub async fn get_identifier_from_book_isbn(
isbn: &str,
google_books_service: &GoogleBooksService,
open_library_service: &OpenlibraryService,
Expand Down
2 changes: 1 addition & 1 deletion crates/services/importer/src/story_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub async fn import(
continue;
};
let Some((identifier, source)) =
utils::get_identifier_from_isbn(&isbn, google_books_service, open_library_service)
utils::get_identifier_from_book_isbn(&isbn, google_books_service, open_library_service)
.await
else {
failed_items.push(ImportFailedItem {
Expand Down

0 comments on commit 8fa6c01

Please sign in to comment.