httpd: change `committerTime` into `committer.time`

Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
xphoniex 2023-01-19 14:17:48 +00:00 committed by Alexis Sellier
parent b1012014fe
commit f065bce876
No known key found for this signature in database
2 changed files with 17 additions and 17 deletions

View File

@ -18,9 +18,9 @@ pub(crate) fn commit(commit: &Commit) -> serde_json::Value {
"description": commit.description(), "description": commit.description(),
"committer": { "committer": {
"name": commit.committer.name, "name": commit.committer.name,
"email": commit.committer.email "email": commit.committer.email,
}, "time": commit.committer.time.seconds()
"committerTime": commit.committer.time.seconds() }
}) })
} }

View File

@ -533,9 +533,9 @@ mod routes {
"description": "", "description": "",
"committer": { "committer": {
"name": "Alice Liddell", "name": "Alice Liddell",
"email": "alice@radicle.xyz" "email": "alice@radicle.xyz",
"time": 1673001014
}, },
"committerTime": 1673001014
}, },
"diff": { "diff": {
"added": [ "added": [
@ -583,9 +583,9 @@ mod routes {
"description": "", "description": "",
"committer": { "committer": {
"name": "Alice Liddell", "name": "Alice Liddell",
"email": "alice@radicle.xyz" "email": "alice@radicle.xyz",
"time": 1673001014
}, },
"committerTime": 1673001014
}, },
"diff": { "diff": {
"added": [ "added": [
@ -657,9 +657,9 @@ mod routes {
"description": "", "description": "",
"committer": { "committer": {
"name": "Alice Liddell", "name": "Alice Liddell",
"email": "alice@radicle.xyz" "email": "alice@radicle.xyz",
"time": 1673001014
}, },
"committerTime": 1673001014
}, },
"diff": { "diff": {
"added": [ "added": [
@ -737,9 +737,9 @@ mod routes {
"description": "", "description": "",
"committer": { "committer": {
"name": "Alice Liddell", "name": "Alice Liddell",
"email": "alice@radicle.xyz" "email": "alice@radicle.xyz",
"time": 1673001014
}, },
"committerTime": 1673001014
}, },
"name": "", "name": "",
"path": "", "path": "",
@ -780,9 +780,9 @@ mod routes {
"description": "", "description": "",
"committer": { "committer": {
"name": "Alice Liddell", "name": "Alice Liddell",
"email": "alice@radicle.xyz" "email": "alice@radicle.xyz",
"time": 1673001014
}, },
"committerTime": 1673001014
}, },
"name": "dir1", "name": "dir1",
"path": "dir1", "path": "dir1",
@ -861,9 +861,9 @@ mod routes {
"description": "", "description": "",
"committer": { "committer": {
"name": "Alice Liddell", "name": "Alice Liddell",
"email": "alice@radicle.xyz" "email": "alice@radicle.xyz",
"time": 1673001014
}, },
"committerTime": 1673001014
}, },
"name": "README", "name": "README",
"path": "README" "path": "README"
@ -897,9 +897,9 @@ mod routes {
"description": "", "description": "",
"committer": { "committer": {
"name": "Alice Liddell", "name": "Alice Liddell",
"email": "alice@radicle.xyz" "email": "alice@radicle.xyz",
"time": 1673001014
}, },
"committerTime": 1673001014
}, },
"name": "README", "name": "README",
"path": "README" "path": "README"