remove contact form action
This commit is contained in:
		
							parent
							
								
									afb6180b1d
								
							
						
					
					
						commit
						bbd0e363b4
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -117,10 +117,10 @@ impl ContactForm {
 | 
			
		|||
 | 
			
		||||
#[post("/api/mt-parent-form")]
 | 
			
		||||
pub async fn mt_parent_form(MultipartForm(mut form): MultipartForm<ContactForm>) -> HttpResponse {
 | 
			
		||||
    match form.store_form().await {
 | 
			
		||||
        Ok(_) => info!("Successfully sent form to nextcloud!"),
 | 
			
		||||
        Err(e) => error!("There was an erroring sending form to nextcloud: {e}"),
 | 
			
		||||
    }
 | 
			
		||||
    // match form.store_form().await {
 | 
			
		||||
    //     Ok(_) => info!("Successfully sent form to nextcloud!"),
 | 
			
		||||
    //     Err(e) => error!("There was an erroring sending form to nextcloud: {e}"),
 | 
			
		||||
    // }
 | 
			
		||||
    match form.send_email().await {
 | 
			
		||||
        Ok(_) => info!("Successfully sent email"),
 | 
			
		||||
        Err(e) => error!("There was an error sending the email: {e}"),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue