diff --git a/ee/tabby-webserver/src/service/background_job/third_party_integration.rs b/ee/tabby-webserver/src/service/background_job/third_party_integration.rs index 587ecf8b905e..beb9dc7970c9 100644 --- a/ee/tabby-webserver/src/service/background_job/third_party_integration.rs +++ b/ee/tabby-webserver/src/service/background_job/third_party_integration.rs @@ -147,7 +147,7 @@ impl SchedulerGithubGitlabJob { num_updated += 1 } if state.should_clean { - index.delete(&id).await; + index.delete(id).await; num_deleted += 1; } diff --git a/ee/tabby-webserver/src/service/background_job/third_party_integration/issues.rs b/ee/tabby-webserver/src/service/background_job/third_party_integration/issues.rs index cc04abbb1f13..a9de29c9745e 100644 --- a/ee/tabby-webserver/src/service/background_job/third_party_integration/issues.rs +++ b/ee/tabby-webserver/src/service/background_job/third_party_integration/issues.rs @@ -1,5 +1,3 @@ -use super::FetchState; - use anyhow::{anyhow, Result}; use async_stream::stream; use chrono::{DateTime, Utc}; @@ -9,6 +7,7 @@ use octocrab::Octocrab; use serde::Deserialize; use tabby_index::public::{StructuredDoc, StructuredDocFields, StructuredDocIssueFields}; +use super::FetchState; use crate::service::create_gitlab_client; pub async fn list_github_issues( diff --git a/ee/tabby-webserver/src/service/background_job/third_party_integration/pulls.rs b/ee/tabby-webserver/src/service/background_job/third_party_integration/pulls.rs index 5c8bbecdefcc..6b4b03c8db9a 100644 --- a/ee/tabby-webserver/src/service/background_job/third_party_integration/pulls.rs +++ b/ee/tabby-webserver/src/service/background_job/third_party_integration/pulls.rs @@ -1,11 +1,11 @@ -use super::FetchState; - use anyhow::{anyhow, Result}; use async_stream::stream; use futures::Stream; use octocrab::{models::IssueState, Octocrab}; use tabby_index::public::{StructuredDoc, StructuredDocFields, StructuredDocPullDocumentFields}; +use super::FetchState; + pub async fn list_github_pulls( source_id: &str, api_base: &str,