Revert stub show_pretty that will be obsoleted by graphql.
This commit is contained in:
parent
e6692059b4
commit
2a24a20529
@ -17,7 +17,6 @@ use rocket_cors::{AllowedHeaders, AllowedOrigins};
|
||||
use server::{
|
||||
error::ServerError,
|
||||
graphql::{GraphqlSchema, QueryRoot},
|
||||
nm::threadset_to_messages,
|
||||
};
|
||||
use shared::Message;
|
||||
|
||||
@ -58,9 +57,9 @@ async fn search(
|
||||
async fn show_pretty(
|
||||
nm: &State<Notmuch>,
|
||||
query: &str,
|
||||
) -> Result<Json<Vec<Message>>, Debug<ServerError>> {
|
||||
) -> Result<Json<ThreadSet>, Debug<ServerError>> {
|
||||
let query = urlencoding::decode(query).map_err(|e| ServerError::from(NotmuchError::from(e)))?;
|
||||
let res = threadset_to_messages(nm.show(&query).map_err(ServerError::from)?)?;
|
||||
let res = nm.show(&query).map_err(ServerError::from)?;
|
||||
Ok(Json(res))
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user