diff --git a/src/api/admin.rs b/src/api/admin.rs index 59beab1e6e..59c770d8e5 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 { 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::), }; users_json.push(usr); }