Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Apr 9, 2024
1 parent 6ff67ac commit bd640c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions ee/tabby-webserver/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 2 additions & 7 deletions ee/tabby-webserver/src/service/github_repository_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;

Check warning on line 90 in ee/tabby-webserver/src/service/github_repository_provider.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-webserver/src/service/github_repository_provider.rs#L78-L90

Added lines #L78 - L90 were not covered by tests

Ok(repos
Expand All @@ -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(())
}

Check warning on line 103 in ee/tabby-webserver/src/service/github_repository_provider.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-webserver/src/service/github_repository_provider.rs#L98-L103

Added lines #L98 - L103 were not covered by tests
Expand Down

0 comments on commit bd640c7

Please sign in to comment.