Update movement dialog is operational

This commit is contained in:
2025-05-14 18:39:25 +02:00
parent b2f8a66c12
commit 0d30a8135c
3 changed files with 50 additions and 12 deletions

View File

@ -12,9 +12,9 @@ pub async fn create(auth: AuthExtractor, req: web::Json<UpdateMovementQuery>) ->
return Ok(HttpResponse::BadRequest().json(err));
}
movements_service::create(&req).await?;
let movement = movements_service::create(&req).await?;
Ok(HttpResponse::Created().finish())
Ok(HttpResponse::Created().json(movement))
}
/// Get the balances of all the accounts of the user