Community::update(
&mut context.pool(),
community.id,
- &CommunityUpdateForm::builder().removed(Some(false)).build(),
+ &CommunityUpdateForm {
+ removed: Some(false),
+ ..Default::default()
+ },
)
.await?;
}
Post::update(
&mut context.pool(),
post.id,
- &PostUpdateForm::builder().removed(Some(false)).build(),
+ &PostUpdateForm {
+ removed: Some(false),
+ ..Default::default()
+ },
)
.await?;
}
Comment::update(
&mut context.pool(),
comment.id,
- &CommentUpdateForm::builder().removed(Some(false)).build(),
+ &CommentUpdateForm {
+ removed: Some(false),
+ ..Default::default()
+ },
)
.await?;
}