(&self, p: post::Model)
| 66 | } |
| 67 | |
| 68 | async fn update(&self, p: post::Model) -> RpcResult<bool> { |
| 69 | Mutation::update_post_by_id(&self.conn, p.id, p) |
| 70 | .await |
| 71 | .map(|_| true) |
| 72 | .internal_call_error() |
| 73 | } |
| 74 | async fn delete(&self, id: i32) -> RpcResult<bool> { |
| 75 | Mutation::delete_post(&self.conn, id) |
| 76 | .await |
no test coverage detected