fix: there wasn't even a public field...

This commit is contained in:
əlemi 2024-01-03 04:38:31 +01:00
parent 3672c57b1f
commit 0ed8e6649f
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 1 additions and 2 deletions

View file

@ -86,7 +86,7 @@ async fn main() {
body: sugg.body.clone(), body: sugg.body.clone(),
author: Some(sugg.author.clone()), author: Some(sugg.author.clone()),
contact: sugg.contact.clone(), contact: sugg.contact.clone(),
public: Some(sugg.public), public: Some(true),
date: Some(sugg.date), date: Some(sugg.date),
}; };
storage.archive(insert).await.unwrap(); storage.archive(insert).await.unwrap();

View file

@ -26,7 +26,6 @@ pub struct PageOldNoId {
pub contact: Option<String>, pub contact: Option<String>,
pub body: String, pub body: String,
pub date: DateTime<Utc>, pub date: DateTime<Utc>,
pub public: bool,
} }
// TODO this is only necessary until sqlx fixes parsing BOOL and NULL, check model.rs for more // TODO this is only necessary until sqlx fixes parsing BOOL and NULL, check model.rs for more