From f18450a460da8897aaf1ca95553653497f7e7d70 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 17 Mar 2021 09:57:00 +0100 Subject: fix: error when 'tree' is null --- src/commit/models.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commit/models.rs b/src/commit/models.rs index 215ab57..068c550 100644 --- a/src/commit/models.rs +++ b/src/commit/models.rs @@ -12,7 +12,7 @@ use tokio_pg_mapper_derive::PostgresMapper; /// Commit model pub struct Commit { pub hash: String, - pub tree: String, + pub tree: Option, pub text: String, pub date: NaiveDateTime, pub author_email: String, // Reference to Email -- cgit v1.2.3-18-g5258