let report_id = self.report_id;
let person_id = local_user_view.person.id;
if self.resolved {
- PrivateMessageReport::resolve(context.pool(), report_id, person_id)
+ PrivateMessageReport::resolve(&mut context.pool(), report_id, person_id)
.await
.with_lemmy_type(LemmyErrorType::CouldntResolveReport)?;
} else {
- PrivateMessageReport::unresolve(context.pool(), report_id, person_id)
+ PrivateMessageReport::unresolve(&mut context.pool(), report_id, person_id)
.await
.with_lemmy_type(LemmyErrorType::CouldntResolveReport)?;
}
let private_message_report_view =
- PrivateMessageReportView::read(context.pool(), report_id).await?;
+ PrivateMessageReportView::read(&mut context.pool(), report_id).await?;
Ok(PrivateMessageReportResponse {
private_message_report_view,