mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-06 00:02:13 +00:00
compilation nits
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
@@ -662,15 +662,11 @@ pub(crate) struct DeleteWorkspaceQuery {
|
||||
pub(crate) only_delete_forks: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Default)]
|
||||
pub(crate) struct DeleteWorkspaceBody {}
|
||||
|
||||
pub(crate) async fn delete_workspace(
|
||||
Extension(db): Extension<DB>,
|
||||
Path(w_id): Path<String>,
|
||||
authed: ApiAuthed,
|
||||
Query(dwq): Query<DeleteWorkspaceQuery>,
|
||||
body: Option<Json<DeleteWorkspaceBody>>,
|
||||
) -> Result<String> {
|
||||
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<String>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user