Skip to content

Commit 4239535

Browse files
[autofix.ci] apply automated fixes
1 parent 9ef28da commit 4239535

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

ee/tabby-db/src/server_setting.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ impl DbConn {
4242
branding_name
4343
FROM server_setting
4444
WHERE id = ?;",
45-
4645
)
4746
.bind(SERVER_SETTING_ROW_ID)
4847
.fetch_optional(&mut **transaction)

ee/tabby-schema/graphql/schema.graphql

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,6 @@ type AuthProvider {
473473
kind: AuthProviderKind!
474474
}
475475

476-
type BrandingSetting {
477-
brandingLogo: String
478-
brandingName: String
479-
}
480-
481476
type ChatCompletionMessage {
482477
role: String!
483478
content: String!
@@ -1096,7 +1091,7 @@ type Query {
10961091
emailSetting: EmailSetting
10971092
networkSetting: NetworkSetting!
10981093
securitySetting: SecuritySetting!
1099-
brandingSetting: BrandingSetting!
1094+
brandingSetting: String
11001095
gitRepositories(after: String, before: String, first: Int, last: Int): RepositoryConnection!
11011096
"Search files that matches the pattern in the repository."
11021097
repositorySearch(kind: RepositoryKind!, id: ID!, rev: String, pattern: String!): [FileEntrySearchResult!]!

ee/tabby-schema/src/schema/setting.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub trait SettingService: Send + Sync {
2121
branding_logo: Option<Box<[u8]>>,
2222
branding_name: Option<String>,
2323
) -> Result<()>;
24-
2524
}
2625

2726
#[derive(GraphQLObject, Debug, PartialEq)]
@@ -52,10 +51,6 @@ pub struct NetworkSetting {
5251
pub external_url: String,
5352
}
5453

55-
56-
57-
58-
5954
#[derive(GraphQLInputObject, Validate)]
6055
pub struct NetworkSettingInput {
6156
#[validate(url(code = "externalUrl", message = "URL is malformed"))]

ee/tabby-webserver/src/service/setting.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ impl SettingService for SettingServiceImpl {
4848
}
4949

5050
async fn read_branding_setting(&self) -> Result<Option<String>> {
51-
Ok(self.db.read_branding_setting().await?.into())
51+
Ok(self.db.read_branding_setting().await?)
5252
}
5353

5454
async fn read_branding_logo(&self) -> Result<Option<Vec<u8>>> {
55-
Ok(self.db.read_branding_logo().await?.into())
55+
Ok(self.db.read_branding_logo().await?)
5656
}
5757

5858
async fn update_branding_setting(

0 commit comments

Comments
 (0)