summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-17 09:57:00 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-17 09:57:00 +0100
commitf18450a460da8897aaf1ca95553653497f7e7d70 (patch)
tree40969e6c577cf7c1b4f4109107f3c654d3ba1c0b /src
parentbc9a0de90f0463b59e69e6bb2f2e75f3c29062e5 (diff)
fix: error when 'tree' is null
Diffstat (limited to 'src')
-rw-r--r--src/commit/models.rs2
1 files changed, 1 insertions, 1 deletions
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<String>,
pub text: String,
pub date: NaiveDateTime,
pub author_email: String, // Reference to Email