aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorJoris2023-04-17 20:50:58 +0200
committerJoris2023-04-17 20:50:58 +0200
commit8dcb9c6fff82f9e353e0f92b417dd803199f4257 (patch)
treeb6e4bc19a28fb0a6cca87054a2294ee4d246e747 /src/db
parent75d96e813dbe48eda89321adccadccd40d9fbafa (diff)
Upgrade dependencies
Diffstat (limited to 'src/db')
-rw-r--r--src/db/incomes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/incomes.rs b/src/db/incomes.rs
index 5f44398..f2eaf1c 100644
--- a/src/db/incomes.rs
+++ b/src/db/incomes.rs
@@ -139,7 +139,7 @@ VALUES
"#,
)
.bind(i.user_id)
- .bind(NaiveDate::from_ymd(i.year, i.month, 1))
+ .bind(NaiveDate::from_ymd_opt(i.year, i.month, 1)?)
.bind(i.amount)
.execute(pool)
.await;