mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 12:05:53 +00:00
revert request error
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user