httpd: Change sha1 into id

Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
xphoniex
2023-01-25 15:35:24 +01:00
committed by Alexis Sellier
parent 05da23b707
commit f9e519296d
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ use serde_json::json;
/// Returns JSON of a commit.
pub(crate) fn commit(commit: &Commit) -> serde_json::Value {
json!({
"sha1": commit.id,
"id": commit.id,
"author": {
"name": commit.author.name,
"email": commit.author.email
+7 -7
View File
@@ -524,7 +524,7 @@ mod routes {
"commits": [
{
"commit": {
"sha1": HEAD,
"id": HEAD,
"author": {
"name": "Alice Liddell",
"email": "alice@radicle.xyz"
@@ -574,7 +574,7 @@ mod routes {
},
{
"commit": {
"sha1": HEAD_1,
"id": HEAD_1,
"author": {
"name": "Alice Liddell",
"email": "alice@radicle.xyz"
@@ -648,7 +648,7 @@ mod routes {
response.json().await,
json!({
"commit": {
"sha1": HEAD,
"id": HEAD,
"author": {
"name": "Alice Liddell",
"email": "alice@radicle.xyz"
@@ -728,7 +728,7 @@ mod routes {
}
],
"lastCommit": {
"sha1": HEAD,
"id": HEAD,
"author": {
"name": "Alice Liddell",
"email": "alice@radicle.xyz"
@@ -771,7 +771,7 @@ mod routes {
}
],
"lastCommit": {
"sha1": HEAD,
"id": HEAD,
"author": {
"name": "Alice Liddell",
"email": "alice@radicle.xyz"
@@ -852,7 +852,7 @@ mod routes {
"binary": false,
"content": "Hello World!\n",
"lastCommit": {
"sha1": HEAD_1,
"id": HEAD_1,
"author": {
"name": "Alice Liddell",
"email": "alice@radicle.xyz"
@@ -888,7 +888,7 @@ mod routes {
"binary": false,
"content": "Hello World!\n",
"lastCommit": {
"sha1": HEAD_1,
"id": HEAD_1,
"author": {
"name": "Alice Liddell",
"email": "alice@radicle.xyz"