Rename and change query filters

This commit is contained in:
Alex Auvolat
2022-01-03 18:03:12 +01:00
parent de37658b94
commit ba7f268b99
3 changed files with 8 additions and 8 deletions
+1 -2
View File
@@ -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::<Vec<_>>();
if candidates.len() != 1 {
Err(Error::BadRequest(format!(