From e1261aea964aa5783e4e014d8cd30dc24af065a6 Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 23 Oct 2023 19:44:38 +0200 Subject: [PATCH] Fix type of parentsByHash field --- scripts/graph/requests.ts | 2 +- src/server/web/pages/graph.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/graph/requests.ts b/scripts/graph/requests.ts index 249d10a..e08e9e3 100644 --- a/scripts/graph/requests.ts +++ b/scripts/graph/requests.ts @@ -15,7 +15,7 @@ export type CommitsResponse = { authorByHash: string[]; committerDateByHash: number[]; messageByHash: string[]; - parentsByHash: string[][]; + parentsByHash: number[][]; }; /** diff --git a/src/server/web/pages/graph.rs b/src/server/web/pages/graph.rs index 99dce60..7cc6604 100644 --- a/src/server/web/pages/graph.rs +++ b/src/server/web/pages/graph.rs @@ -66,7 +66,7 @@ struct CommitsResponse { author_by_hash: Vec, committer_date_by_hash: Vec, message_by_hash: Vec, - parents_by_hash: Vec>, + parents_by_hash: Vec>, } pub async fn get_graph_commits(