Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-24 05:30:28 +01:00
LastActive is null instead of 'Never' when never connected
Dieser Commit ist enthalten in:
Ursprung
bf41d74501
Commit
30b408eaa9
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -328,7 +328,7 @@ async fn get_users_json(_token: AdminToken, mut conn: DbConn) -> Json<Value> {
|
||||||
usr["CreatedAt"] = json!(format_naive_datetime_local(&u.created_at, DT_FMT));
|
usr["CreatedAt"] = json!(format_naive_datetime_local(&u.created_at, DT_FMT));
|
||||||
usr["LastActive"] = match u.last_active(&mut conn).await {
|
usr["LastActive"] = match u.last_active(&mut conn).await {
|
||||||
Some(dt) => json!(format_naive_datetime_local(&dt, DT_FMT)),
|
Some(dt) => json!(format_naive_datetime_local(&dt, DT_FMT)),
|
||||||
None => json!("Never"),
|
None => json!(None::<String>),
|
||||||
};
|
};
|
||||||
users_json.push(usr);
|
users_json.push(usr);
|
||||||
}
|
}
|
||||||
|
|
Laden …
In neuem Issue referenzieren