From 2b30e6709e223d0bc444b96336f8b730c1fc0da2 Mon Sep 17 00:00:00 2001 From: Daniel Boline Date: Sun, 24 Nov 2024 16:07:28 -0500 Subject: [PATCH] refactor --- movie_collection_http/src/logged_user.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/movie_collection_http/src/logged_user.rs b/movie_collection_http/src/logged_user.rs index 1b220ed..4658a35 100644 --- a/movie_collection_http/src/logged_user.rs +++ b/movie_collection_http/src/logged_user.rs @@ -163,7 +163,7 @@ pub async fn fill_from_db(pool: &PgPool) -> Result<(), Error> { email: "user@test".into(), session: Uuid::new_v4(), secret_key: StackString::default(), - created_at: Some(OffsetDateTime::now_utc()) + created_at: OffsetDateTime::now_utc() } }); return Ok(()); @@ -189,7 +189,7 @@ pub async fn fill_from_db(pool: &PgPool) -> Result<(), Error> { email: u.email, session: Uuid::new_v4(), secret_key: StackString::default(), - created_at: Some(u.created_at), + created_at: u.created_at, }, ) })