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