Skip to content

Commit

Permalink
bugfix: remove unwrap error parsing uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker authored and skeptrunedev committed Dec 16, 2024
1 parent 147ca29 commit 6d662fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/src/operators/qdrant_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,7 @@ pub async fn update_qdrant_point_query(
.to_owned()
.iter_list()
.unwrap()
.map(|id| {
id.to_string()
.parse::<uuid::Uuid>()
.expect("group_id must be a valid uuid")
})
.filter_map(|id| id.to_string().parse::<uuid::Uuid>().ok())
.collect::<Vec<uuid::Uuid>>()
} else {
vec![]
Expand Down

0 comments on commit 6d662fe

Please sign in to comment.