mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-11-02 19:13:28 +00:00
chore: remove unused code
This commit is contained in:
parent
c633dd0919
commit
98b835227e
@ -368,13 +368,6 @@ impl ChatCloudService for AICloudServiceMiddleware {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn get_workspace_plan(
|
|
||||||
&self,
|
|
||||||
workspace_id: &Uuid,
|
|
||||||
) -> Result<Vec<SubscriptionPlan>, FlowyError> {
|
|
||||||
self.cloud_service.get_workspace_plan(workspace_id).await
|
|
||||||
}
|
|
||||||
|
|
||||||
async fn get_chat_settings(
|
async fn get_chat_settings(
|
||||||
&self,
|
&self,
|
||||||
workspace_id: &Uuid,
|
workspace_id: &Uuid,
|
||||||
|
|||||||
@ -76,7 +76,6 @@ pub fn insert_chat(mut conn: DBConnection, new_chat: &ChatTable) -> QueryResult<
|
|||||||
.execute(&mut *conn)
|
.execute(&mut *conn)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
pub fn update_chat(
|
pub fn update_chat(
|
||||||
conn: &mut SqliteConnection,
|
conn: &mut SqliteConnection,
|
||||||
changeset: ChatTableChangeset,
|
changeset: ChatTableChangeset,
|
||||||
|
|||||||
@ -802,17 +802,6 @@ impl ChatCloudService for ServerProvider {
|
|||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn get_workspace_plan(
|
|
||||||
&self,
|
|
||||||
workspace_id: &Uuid,
|
|
||||||
) -> Result<Vec<SubscriptionPlan>, FlowyError> {
|
|
||||||
self
|
|
||||||
.get_server()?
|
|
||||||
.chat_service()
|
|
||||||
.get_workspace_plan(workspace_id)
|
|
||||||
.await
|
|
||||||
}
|
|
||||||
|
|
||||||
async fn get_chat_settings(
|
async fn get_chat_settings(
|
||||||
&self,
|
&self,
|
||||||
workspace_id: &Uuid,
|
workspace_id: &Uuid,
|
||||||
|
|||||||
@ -226,18 +226,6 @@ where
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn get_workspace_plan(
|
|
||||||
&self,
|
|
||||||
workspace_id: &Uuid,
|
|
||||||
) -> Result<Vec<SubscriptionPlan>, FlowyError> {
|
|
||||||
let plans = self
|
|
||||||
.inner
|
|
||||||
.try_get_client()?
|
|
||||||
.get_active_workspace_subscriptions(workspace_id.to_string().as_str())
|
|
||||||
.await?;
|
|
||||||
Ok(plans)
|
|
||||||
}
|
|
||||||
|
|
||||||
async fn get_chat_settings(
|
async fn get_chat_settings(
|
||||||
&self,
|
&self,
|
||||||
workspace_id: &Uuid,
|
workspace_id: &Uuid,
|
||||||
|
|||||||
@ -134,16 +134,6 @@ impl ChatCloudService for LocalServerChatServiceImpl {
|
|||||||
Err(FlowyError::not_support().with_context("indexing file is not supported in local server."))
|
Err(FlowyError::not_support().with_context("indexing file is not supported in local server."))
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn get_workspace_plan(
|
|
||||||
&self,
|
|
||||||
_workspace_id: &Uuid,
|
|
||||||
) -> Result<Vec<SubscriptionPlan>, FlowyError> {
|
|
||||||
Err(
|
|
||||||
FlowyError::not_support()
|
|
||||||
.with_context("Get local ai config is not supported in local server."),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
async fn get_chat_settings(
|
async fn get_chat_settings(
|
||||||
&self,
|
&self,
|
||||||
_workspace_id: &Uuid,
|
_workspace_id: &Uuid,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user