Merge branch 'evals' of https://github.com/buster-so/buster into evals

This commit is contained in:
Nate Kelley 2025-04-22 11:57:27 -06:00
commit c422450da6
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 6 additions and 6 deletions

View File

@ -24,9 +24,9 @@ pub struct LogListItem {
pub created_by_name: String,
pub created_by_avatar: Option<String>,
pub last_edited: String,
pub most_recent_file_id: Option<String>,
pub most_recent_file_type: Option<String>,
pub most_recent_version_number: Option<i32>,
pub latest_file_id: Option<String>,
pub latest_file_type: Option<String>,
pub latest_version_number: Option<i32>,
}
#[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();