diff --git a/backend/windmill-api-workspaces/src/workspaces.rs b/backend/windmill-api-workspaces/src/workspaces.rs index 6cb21f89b8..0b8f66c831 100644 --- a/backend/windmill-api-workspaces/src/workspaces.rs +++ b/backend/windmill-api-workspaces/src/workspaces.rs @@ -50,7 +50,7 @@ use windmill_common::{ oauth2::WORKSPACE_SLACK_BOT_TOKEN_PATH, utils::{paginate, rd_string, require_admin, Pagination}, }; -use windmill_common::{get_database_url, PgDatabase}; +use windmill_common::PgDatabase; use windmill_dep_map::scoped_dependency_map::{ DependencyDependent, DependencyMap, ScopedDependencyMap, }; diff --git a/backend/windmill-api-workspaces/src/workspaces_extra.rs b/backend/windmill-api-workspaces/src/workspaces_extra.rs index ba8a40dcee..185abefe10 100644 --- a/backend/windmill-api-workspaces/src/workspaces_extra.rs +++ b/backend/windmill-api-workspaces/src/workspaces_extra.rs @@ -662,15 +662,11 @@ pub(crate) struct DeleteWorkspaceQuery { pub(crate) only_delete_forks: Option, } -#[derive(Deserialize, Default)] -pub(crate) struct DeleteWorkspaceBody {} - pub(crate) async fn delete_workspace( Extension(db): Extension, Path(w_id): Path, authed: ApiAuthed, Query(dwq): Query, - body: Option>, ) -> Result { let w_id = match w_id.as_str() { "starter" => Err(Error::BadRequest( @@ -853,7 +849,7 @@ pub(crate) async fn delete_workspace( } #[derive(Deserialize)] -struct DropForkedDatatableDatabasesRequest { +pub struct DropForkedDatatableDatabasesRequest { datatable_names: Vec, }