From cc838ef145098e6bc36b5454a07fd9c73285b7c8 Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Mon, 6 Nov 2023 21:41:00 +0000 Subject: [PATCH] (toggl-portal): Fix issue with start and stop transitioning to from raw to database types. I really need to write some tests --- src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index 8eb16ba..6ddaac2 100644 --- a/src/db.rs +++ b/src/db.rs @@ -13,7 +13,7 @@ impl ReportEntry { description: Set(self.description.clone()), project_id: Set(self.project_id.map(|id| id as i64)), start: Set(chrono::DateTime::parse_from_rfc3339(&inner.start).unwrap()), - stop: Set(chrono::DateTime::parse_from_rfc3339(&inner.start).unwrap()), + stop: Set(chrono::DateTime::parse_from_rfc3339(&inner.stop).unwrap()), raw_json: Set(serde_json::to_value(inner).unwrap()), }) .collect()