From bd640c714d0ac0ff645d5bd6aa4c54fb4e3b77fd Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 9 Apr 2024 23:42:10 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- ee/tabby-webserver/graphql/schema.graphql | 1 + .../src/service/github_repository_provider.rs | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ee/tabby-webserver/graphql/schema.graphql b/ee/tabby-webserver/graphql/schema.graphql index bbc51ed8508b..5eee7da07d8c 100644 --- a/ee/tabby-webserver/graphql/schema.graphql +++ b/ee/tabby-webserver/graphql/schema.graphql @@ -170,6 +170,7 @@ type Mutation { uploadLicense(license: String!): Boolean! resetLicense: Boolean! createGithubRepositoryProvider(displayName: String!, applicationId: String!, applicationSecret: String!): Boolean! + updateGithubProvidedRepositoryActive(id: ID!, active: Boolean!): Boolean! } type RepositoryEdge { diff --git a/ee/tabby-webserver/src/service/github_repository_provider.rs b/ee/tabby-webserver/src/service/github_repository_provider.rs index 029180c2a0c6..122ffec727a2 100644 --- a/ee/tabby-webserver/src/service/github_repository_provider.rs +++ b/ee/tabby-webserver/src/service/github_repository_provider.rs @@ -86,12 +86,7 @@ impl GithubRepositoryProviderService for GithubRepositoryProviderServiceImpl { let (limit, skip_id, backwards) = graphql_pagination_to_filter(after, before, last, first)?; let repos = self .db - .list_github_provided_repositories( - provider.as_rowid()?, - limit, - skip_id, - backwards, - ) + .list_github_provided_repositories(provider.as_rowid()?, limit, skip_id, backwards) .await?; Ok(repos @@ -102,7 +97,7 @@ impl GithubRepositoryProviderService for GithubRepositoryProviderServiceImpl { async fn update_github_provided_repository_active(&self, id: ID, active: bool) -> Result<()> { self.db - .update_github_provided_repository_active(id.as_rowid()? as i64, active) + .update_github_provided_repository_active(id.as_rowid()?, active) .await?; Ok(()) }