From 0ed8e6649f885690a0943fa16fda201d64353cd4 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 3 Jan 2024 04:38:31 +0100 Subject: [PATCH] fix: there wasn't even a public field... --- src/main.rs | 2 +- src/model.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8f67813..a3a15e4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -86,7 +86,7 @@ async fn main() { body: sugg.body.clone(), author: Some(sugg.author.clone()), contact: sugg.contact.clone(), - public: Some(sugg.public), + public: Some(true), date: Some(sugg.date), }; storage.archive(insert).await.unwrap(); diff --git a/src/model.rs b/src/model.rs index f1bf6f7..b1183e3 100644 --- a/src/model.rs +++ b/src/model.rs @@ -26,7 +26,6 @@ pub struct PageOldNoId { pub contact: Option, pub body: String, pub date: DateTime, - pub public: bool, } // TODO this is only necessary until sqlx fixes parsing BOOL and NULL, check model.rs for more