From ba7f268b990cd17c5d20bf9e0eb6ff77d30fe845 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 3 Jan 2022 18:03:12 +0100 Subject: Rename and change query filters --- src/model/helper/bucket.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/model/helper') diff --git a/src/model/helper/bucket.rs b/src/model/helper/bucket.rs index bb4b5b24..8bc54b3f 100644 --- a/src/model/helper/bucket.rs +++ b/src/model/helper/bucket.rs @@ -116,12 +116,11 @@ impl<'a> BucketHelper<'a> { .get_range( &EmptyKey, None, - Some(KeyFilter::Matches(pattern.to_string())), + Some(KeyFilter::MatchesAndNotDeleted(pattern.to_string())), 10, ) .await? .into_iter() - .filter(|k| !k.state.is_deleted()) .collect::>(); if candidates.len() != 1 { Err(Error::BadRequest(format!( -- cgit v1.2.3