]> Untitled Git - lemmy.git/blobdiff - crates/api/src/local_user/change_password.rs
Make functions work with both connection and pool (#3420)
[lemmy.git] / crates / api / src / local_user / change_password.rs
index ffe452c92c71436afed8cfd6719016726f2e663c..ea6f9b3e6b29f8d622a3b29b50d1f19943f4d3ba 100644 (file)
@@ -41,7 +41,7 @@ impl Perform for ChangePassword {
     let local_user_id = local_user_view.local_user.id;
     let new_password = data.new_password.clone();
     let updated_local_user =
-      LocalUser::update_password(context.pool(), local_user_id, &new_password).await?;
+      LocalUser::update_password(&mut context.pool(), local_user_id, &new_password).await?;
 
     // Return the jwt
     Ok(LoginResponse {