httpd: Add timestamp to revisions json

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-03-17 13:54:48 +01:00
committed by Alexis Sellier
parent a49eec9892
commit 2c0cdcd1c5
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -115,6 +115,7 @@ pub(crate) fn patch(id: PatchId, patch: Patch) -> Value {
json!({
"id": id,
"description": rev.description(),
"timestamp": rev.timestamp,
"reviews": rev.reviews().collect::<Vec<_>>(),
})
}).collect::<Vec<_>>(),
+3
View File
@@ -1335,6 +1335,7 @@ mod routes {
{
"id": PATCH_ID,
"description": "",
"timestamp": 1671125284,
"reviews": [],
}
],
@@ -1362,6 +1363,7 @@ mod routes {
{
"id": PATCH_ID,
"description": "",
"timestamp": 1671125284,
"reviews": [],
}
],
@@ -1432,6 +1434,7 @@ mod routes {
{
"id": CREATED_PATCH_ID,
"description": "",
"timestamp": 1671125284,
"reviews": [],
}
],