fix: oops
This commit is contained in:
parent
0a0580a1a7
commit
e1d1e3d470
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ impl ActiveModel {
|
||||||
content: sea_orm::ActiveValue::Set(object.content().map(|x| x.to_string())),
|
content: sea_orm::ActiveValue::Set(object.content().map(|x| x.to_string())),
|
||||||
context: sea_orm::ActiveValue::Set(object.context().id()),
|
context: sea_orm::ActiveValue::Set(object.context().id()),
|
||||||
in_reply_to: sea_orm::ActiveValue::Set(object.in_reply_to().id()),
|
in_reply_to: sea_orm::ActiveValue::Set(object.in_reply_to().id()),
|
||||||
published: sea_orm::ActiveValue::Set(object.published().ok_or_else(chrono::Utc::now)?),
|
published: sea_orm::ActiveValue::Set(object.published().unwrap_or_else(chrono::Utc::now)),
|
||||||
updated: sea_orm::ActiveValue::Set(object.updated().unwrap_or_else(chrono::Utc::now)),
|
updated: sea_orm::ActiveValue::Set(object.updated().unwrap_or_else(chrono::Utc::now)),
|
||||||
url: sea_orm::ActiveValue::Set(object.url().id()),
|
url: sea_orm::ActiveValue::Set(object.url().id()),
|
||||||
replies: sea_orm::ActiveValue::Set(object.replies().get()
|
replies: sea_orm::ActiveValue::Set(object.replies().get()
|
||||||
|
|
Loading…
Reference in a new issue