From 0094d701ad6cad3112879e20e94b947d3f35d246 Mon Sep 17 00:00:00 2001 From: Dens Sumesh Date: Tue, 23 Jul 2024 16:08:45 -0700 Subject: [PATCH] cleanup: remove uneeded struct --- server/src/handlers/group_handler.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/server/src/handlers/group_handler.rs b/server/src/handlers/group_handler.rs index 0e90989f24..5c6b2d2299 100644 --- a/server/src/handlers/group_handler.rs +++ b/server/src/handlers/group_handler.rs @@ -1011,12 +1011,6 @@ pub struct RemoveChunkFromGroupReqPayload { pub chunk_id: uuid::Uuid, } -#[derive(Debug, Deserialize, Serialize, ToSchema)] -pub struct RemoveChunkFromGroupReqQuery { - /// Id of the chunk to remove from the group. - pub chunk_id: uuid::Uuid, -} - /// Remove Chunk from Group /// /// Route to remove a chunk from a group. Auth'ed user or api key must be an admin or owner of the dataset's organization to remove a chunk from a group. @@ -1043,7 +1037,7 @@ pub struct RemoveChunkFromGroupReqQuery { pub async fn remove_chunk_from_group( group_id: web::Path, body: Option>, - query: Option>, + query: Option>, pool: web::Data, _user: AdminOnly, dataset_org_plan_sub: DatasetAndOrgWithSubAndPlan,