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