use custom_title in syslog

This commit is contained in:
2022-10-05 10:57:48 +08:00
parent 8fabca785c
commit e0d6720433
6 changed files with 32 additions and 30 deletions

View File

@@ -19,7 +19,7 @@ pub async fn get_systemlog(user: CurrentUser, rh: &State<RandomHasher>, rconn: R
"data": logs.into_iter().map(|log|
json!({
"type": log.action_type,
"user": look!(log.user_hash),
"user": log.user_hash,
"timestamp": log.time.timestamp(),
"detail": format!("{}\n{}", &log.target, &log.detail),
})