count pages per version
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user