count pages per version

This commit is contained in:
2025-10-17 17:34:23 +02:00
parent 5666dc4a4b
commit d003f0783d
4 changed files with 121 additions and 12 deletions
+3
View File
@@ -107,6 +107,7 @@ pub struct DocumentVersionResponse {
pub size_bytes: i64,
pub checksum: String,
pub created_at: String,
pub metadata: Value,
pub operations_summary: Value,
}
@@ -1641,6 +1642,7 @@ async fn process_upload(
s3_key: s3_key.clone(),
size_bytes,
checksum: checksum_hex.clone(),
metadata: Value::Object(Default::default()),
operations_summary: Value::Object(Default::default()),
};
@@ -1871,6 +1873,7 @@ fn to_version_response(version: DocumentVersion) -> DocumentVersionResponse {
size_bytes: version.size_bytes,
checksum: version.checksum,
created_at: to_iso(version.created_at),
metadata: version.metadata,
operations_summary: version.operations_summary,
}
}