From 6af9fc4f3aeb129c7da7672fed9d32408e444b29 Mon Sep 17 00:00:00 2001 From: dal Date: Tue, 22 Apr 2025 11:55:51 -0600 Subject: [PATCH] logs list item needs to be better --- api/libs/handlers/src/logs/list_logs_handler.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/libs/handlers/src/logs/list_logs_handler.rs b/api/libs/handlers/src/logs/list_logs_handler.rs index 213eb3dd8..eacc7cd98 100644 --- a/api/libs/handlers/src/logs/list_logs_handler.rs +++ b/api/libs/handlers/src/logs/list_logs_handler.rs @@ -24,9 +24,9 @@ pub struct LogListItem { pub created_by_name: String, pub created_by_avatar: Option, pub last_edited: String, - pub most_recent_file_id: Option, - pub most_recent_file_type: Option, - pub most_recent_version_number: Option, + pub latest_file_id: Option, + pub latest_file_type: Option, + pub latest_version_number: Option, } #[derive(Debug, Serialize, Deserialize)] @@ -129,9 +129,9 @@ pub async fn list_logs_handler( created_by_name: chat.user_name.unwrap_or_else(|| "Unknown".to_string()), created_by_avatar, last_edited: chat.updated_at.to_rfc3339(), - most_recent_file_id: chat.most_recent_file_id.map(|id| id.to_string()), - most_recent_file_type: chat.most_recent_file_type, - most_recent_version_number: chat.most_recent_version_number, + latest_file_id: chat.most_recent_file_id.map(|id| id.to_string()), + latest_file_type: chat.most_recent_file_type, + latest_version_number: chat.most_recent_version_number, } }) .collect();