mirror of
https://git.alemi.dev/guestbook.rs.git
synced 2024-12-19 02:54:52 +01:00
fix: there wasn't even a public field...
This commit is contained in:
parent
3672c57b1f
commit
0ed8e6649f
2 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue