summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--service-person/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/service-person/src/main.rs b/service-person/src/main.rs
index 3c5dc74..001888f 100644
--- a/service-person/src/main.rs
+++ b/service-person/src/main.rs
@@ -37,7 +37,7 @@ pub fn establish_connection() -> DbPool {
.expect(&format!("Error connection to {}", database_url))
}
-async fn create_person(person: web::Json<Person>) -> Result<HttpResponse> {
+async fn create_person(db: web::Data<DbPool>, person: web::Json<Person>) -> Result<HttpResponse> {
log::debug!("Creating person = {:?}", person);
Ok(HttpResponse::Ok().finish())
}