remove contact form action

This commit is contained in:
Chris Cochrun 2025-01-28 15:12:49 -06:00
parent afb6180b1d
commit bbd0e363b4

View file

@ -117,10 +117,10 @@ impl ContactForm {
#[post("/api/mt-parent-form")] #[post("/api/mt-parent-form")]
pub async fn mt_parent_form(MultipartForm(mut form): MultipartForm<ContactForm>) -> HttpResponse { pub async fn mt_parent_form(MultipartForm(mut form): MultipartForm<ContactForm>) -> HttpResponse {
match form.store_form().await { // match form.store_form().await {
Ok(_) => info!("Successfully sent form to nextcloud!"), // Ok(_) => info!("Successfully sent form to nextcloud!"),
Err(e) => error!("There was an erroring sending form to nextcloud: {e}"), // Err(e) => error!("There was an erroring sending form to nextcloud: {e}"),
} // }
match form.send_email().await { match form.send_email().await {
Ok(_) => info!("Successfully sent email"), Ok(_) => info!("Successfully sent email"),
Err(e) => error!("There was an error sending the email: {e}"), Err(e) => error!("There was an error sending the email: {e}"),