fix: 默认时间戳视为 None

This commit is contained in:
amtoaer
2026-04-07 17:37:20 +08:00
parent 34e2140afa
commit f5fb51d703
@@ -164,6 +164,7 @@ pub async fn get_video_sources_details(
if let Some(rule) = &item.rule { if let Some(rule) = &item.rule {
item.rule_display = Some(rule.to_string()); item.rule_display = Some(rule.to_string());
} }
item.latest_row_at = item.latest_row_at.filter(|dt| dt.and_utc().timestamp() != 0);
}); });
} }
Ok(ApiResponse::ok(VideoSourcesDetailsResponse { Ok(ApiResponse::ok(VideoSourcesDetailsResponse {