From 8dcb9c6fff82f9e353e0f92b417dd803199f4257 Mon Sep 17 00:00:00 2001 From: Joris Date: Mon, 17 Apr 2023 20:50:58 +0200 Subject: Upgrade dependencies --- src/db/incomes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db/incomes.rs') 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; -- cgit v1.2.3