diff options
author | Mathieu Valois <[email protected]> | 2023-10-17 11:18:39 +0200 |
---|---|---|
committer | Mathieu Valois <[email protected]> | 2023-10-17 11:18:39 +0200 |
commit | 30b408eaa9f3d84c4aee849597ba1f25d4ba06ad (patch) | |
tree | 57b55bb735037313740a8aa60ba33333fd2de092 | |
parent | bf41d74501907bd545b471752eb2b51f000a9500 (diff) | |
download | vaultwarden-30b408eaa9f3d84c4aee849597ba1f25d4ba06ad.tar.gz vaultwarden-30b408eaa9f3d84c4aee849597ba1f25d4ba06ad.zip |
LastActive is null instead of 'Never' when never connected
-rw-r--r-- | src/api/admin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/admin.rs b/src/api/admin.rs index 59beab1e..59c770d8 100644 --- a/src/api/admin.rs +++ b/src/api/admin.rs @@ -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["LastActive"] = match u.last_active(&mut conn).await { Some(dt) => json!(format_naive_datetime_local(&dt, DT_FMT)), - None => json!("Never"), + None => json!(None::<String>), }; users_json.push(usr); } |