fix: app caching invalid values before checking if they are valid (#6077)

* fix: app caching invalid values before checking if they are valid

* prepr
This commit is contained in:
Prospector
2026-05-12 10:40:29 -07:00
committed by GitHub
parent c8c79a6c74
commit 3083dcd932

View File

@@ -890,17 +890,6 @@ impl CachedEntry {
}
}
remaining_keys.retain(|x| {
x != &&*row.id
&& !row.alias.as_ref().is_some_and(|y| {
if type_.case_sensitive_alias().unwrap_or(true) {
x == y
} else {
y.to_lowercase() == x.to_lowercase()
}
})
});
if let Some(data) = parsed_data {
if data.get_type() != type_ {
return Err(crate::ErrorKind::OtherError(format!(
@@ -912,6 +901,18 @@ impl CachedEntry {
.as_error());
}
remaining_keys.retain(|x| {
x != &&*row.id
&& !row.alias.as_ref().is_some_and(|y| {
if type_.case_sensitive_alias().unwrap_or(true)
{
x == y
} else {
y.to_lowercase() == x.to_lowercase()
}
})
});
return_vals.push(Self {
id: row.id,
alias: row.alias,