Skip to content

Commit a3364c1

Browse files
committed
fix: borrow request
1 parent 892cf75 commit a3364c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/handler/account.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async fn put_account(
4949
path_params: web::Path<(i64,)>,
5050
) -> impl Responder {
5151
let account_id = AccountId::new(path_params.into_inner().0);
52-
match usecase::account::put_account(&mut data.account_repository(), request, &account_id) {
52+
match usecase::account::put_account(&mut data.account_repository(), &request, &account_id) {
5353
Ok(_) => HttpResponse::Ok().finish(),
5454
Err(err) => {
5555
HttpResponse::InternalServerError().json(format!("Internal Server Error {}", err))

0 commit comments

Comments
 (0)