Skip to content

Commit

Permalink
cleanup: remove uneeded struct
Browse files Browse the repository at this point in the history
  • Loading branch information
densumesh committed Jul 23, 2024
1 parent 7de2c2b commit 0094d70
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions server/src/handlers/group_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -1043,7 +1037,7 @@ pub struct RemoveChunkFromGroupReqQuery {
pub async fn remove_chunk_from_group(
group_id: web::Path<uuid::Uuid>,
body: Option<web::Json<RemoveChunkFromGroupReqPayload>>,
query: Option<web::Query<RemoveChunkFromGroupReqQuery>>,
query: Option<web::Query<RemoveChunkFromGroupReqPayload>>,
pool: web::Data<Pool>,
_user: AdminOnly,
dataset_org_plan_sub: DatasetAndOrgWithSubAndPlan,
Expand Down

0 comments on commit 0094d70

Please sign in to comment.