(&self, request: Request<Post>)
| 74 | } |
| 75 | |
| 76 | async fn update_post(&self, request: Request<Post>) -> Result<Response<ProcessStatus>, Status> { |
| 77 | let conn = &self.connection; |
| 78 | let input = request.into_inner().into_model(); |
| 79 | |
| 80 | match Mutation::update_post_by_id(conn, input.id, input).await { |
| 81 | Ok(_) => Ok(Response::new(ProcessStatus { success: true })), |
| 82 | Err(_) => Ok(Response::new(ProcessStatus { success: false })), |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | async fn delete_post( |
| 87 | &self, |
nothing calls this directly
no test coverage detected