async fn perform(&self, context: &Data<LemmyContext>) -> Result<Self::Response, LemmyError> {
let token = self.token.clone();
- let verification = EmailVerification::read_for_token(context.pool(), &token)
+ let verification = EmailVerification::read_for_token(&mut context.pool(), &token)
.await
.with_lemmy_type(LemmyErrorType::TokenNotFound)?;
.build();
let local_user_id = verification.local_user_id;
- LocalUser::update(context.pool(), local_user_id, &form).await?;
+ LocalUser::update(&mut context.pool(), local_user_id, &form).await?;
- EmailVerification::delete_old_tokens_for_local_user(context.pool(), local_user_id).await?;
+ EmailVerification::delete_old_tokens_for_local_user(&mut context.pool(), local_user_id).await?;
Ok(VerifyEmailResponse {})
}