revert request error

This commit is contained in:
aecsocket
2026-07-26 15:05:33 +01:00
parent b15e0ea993
commit 4029c262dd
+1 -6
View File
@@ -94,12 +94,7 @@ pub trait SearchBackend: Send + Sync {
info: &SearchRequest,
redis: &RedisPool,
) -> Result<SearchResults, ApiError> {
let mut results = self.search_for_project_raw(info).await.map_err(
|error| match error {
ApiError::Request(error) => ApiError::Internal(error),
error => error,
},
)?;
let mut results = self.search_for_project_raw(info).await?;
hydrate_search_results(&mut results.hits, redis)
.await
.map_err(ApiError::Internal)?;