This commit is contained in:
2023-08-13 23:45:57 +08:00
parent ce67343cdf
commit eff78bcf21
4 changed files with 4 additions and 3 deletions

View File

@@ -52,6 +52,7 @@ async fn inner_read(req: Request<Body>) -> XResult<(StatusCode, Value)> {
let mut map = byte_to_multi_view_map(&data.0);
map.insert("name".to_string(), Value::String(name.to_string()));
map.insert("comment".to_string(), db_key_value.comment.map(|c| Value::String(c)).unwrap_or(Value::Null));
serve_common::ok(Value::Object(map))
}