(
invitation_data: web::Json<InvitationData>,
pool: web::Data<Pool>,
)
| 13 | } |
| 14 | |
| 15 | pub async fn post_invitation( |
| 16 | invitation_data: web::Json<InvitationData>, |
| 17 | pool: web::Data<Pool>, |
| 18 | ) -> Result<HttpResponse, actix_web::Error> { |
| 19 | // run diesel blocking code |
| 20 | web::block(move || create_invitation(invitation_data.into_inner().email, pool)).await??; |
| 21 | |
| 22 | Ok(HttpResponse::Ok().finish()) |
| 23 | } |
| 24 | |
| 25 | fn create_invitation( |
| 26 | eml: String, |
nothing calls this directly
no test coverage detected