Skip to content

Commit

Permalink
fix(backend): minor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Aug 25, 2024
1 parent 54ec222 commit edbd26f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions crates/providers/src/anilist/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl MediaProviderLanguages for AnilistService {

impl AnilistService {
async fn new(page_size: i32, config: &config::AnilistConfig) -> Self {
let client = get_client_config().await;
let client = get_base_http_client(None);
Self {
client,
page_size,
Expand Down Expand Up @@ -524,10 +524,6 @@ impl MediaProvider for AnilistMangaService {
}
}

async fn get_client_config() -> Client {
get_base_http_client(None)
}

async fn media_details(
client: &Client,
id: &str,
Expand All @@ -538,7 +534,7 @@ async fn media_details(
};
let body = MediaDetailsQuery::build_query(variables);
let details = client
.post("")
.post(URL)
.json(&body)
.send()
.await
Expand Down Expand Up @@ -738,7 +734,7 @@ async fn search(
};
let body = MediaSearchQuery::build_query(variables);
let search = client
.post("")
.post(URL)
.json(&body)
.send()
.await
Expand Down
2 changes: 1 addition & 1 deletion crates/services/miscellaneous/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4346,7 +4346,7 @@ GROUP BY m.id;
async fn remove_old_entities_from_monitoring_collection(&self) -> Result<()> {
#[derive(Debug, FromQueryResult)]
struct CustomQueryResponse {
id: i32,
id: Uuid,
created_on: DateTimeUtc,
last_updated_on: Option<DateTimeUtc>,
}
Expand Down

0 comments on commit edbd26f

Please sign in to comment.