diff --git a/crates/server/src/request.rs b/crates/server/src/request.rs index 18ff17e..7132274 100644 --- a/crates/server/src/request.rs +++ b/crates/server/src/request.rs @@ -230,6 +230,17 @@ pub async fn handle_request( .collect(), )) } + Request::SearchCommunity(search_community) => { + let communities = Community::read_by_name( + search_community.get_community_name(), + database_connection, + ) + .await?; + + Ok(Response::SearchCommunity( + communities.into_iter().map(Into::into).collect(), + )) + } } };