};
if data.save {
- CommentSaved::save(context.pool(), &comment_saved_form)
+ CommentSaved::save(&mut context.pool(), &comment_saved_form)
.await
.with_lemmy_type(LemmyErrorType::CouldntSaveComment)?;
} else {
- CommentSaved::unsave(context.pool(), &comment_saved_form)
+ CommentSaved::unsave(&mut context.pool(), &comment_saved_form)
.await
.with_lemmy_type(LemmyErrorType::CouldntSaveComment)?;
}
let comment_id = data.comment_id;
let person_id = local_user_view.person.id;
- let comment_view = CommentView::read(context.pool(), comment_id, Some(person_id)).await?;
+ let comment_view = CommentView::read(&mut context.pool(), comment_id, Some(person_id)).await?;
Ok(CommentResponse {
comment_view,