Fix type of parentsByHash field

This commit is contained in:
Joscha 2023-10-23 19:44:38 +02:00
parent 848c4ad019
commit e1261aea96
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ export type CommitsResponse = {
authorByHash: string[]; authorByHash: string[];
committerDateByHash: number[]; committerDateByHash: number[];
messageByHash: string[]; messageByHash: string[];
parentsByHash: string[][]; parentsByHash: number[][];
}; };
/** /**

View file

@ -66,7 +66,7 @@ struct CommitsResponse {
author_by_hash: Vec<String>, author_by_hash: Vec<String>,
committer_date_by_hash: Vec<i64>, committer_date_by_hash: Vec<i64>,
message_by_hash: Vec<String>, message_by_hash: Vec<String>,
parents_by_hash: Vec<Vec<String>>, parents_by_hash: Vec<Vec<usize>>,
} }
pub async fn get_graph_commits( pub async fn get_graph_commits(