This commit is contained in:
		
							parent
							
								
									4ecc220a85
								
							
						
					
					
						commit
						a2f407655e
					
				@ -113,16 +113,10 @@ fn is_configured(conn: &Conn) -> Result<bool, String> {
 | 
			
		||||
        return Err(json!(ApiResponse {code: 500, message: "Clould not get data of db".to_string()}).to_string());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    let mut version_iter = version_iter.ok().unwrap();
 | 
			
		||||
    let version_iter = version_iter.ok().unwrap();
 | 
			
		||||
 | 
			
		||||
    if version_iter.by_ref().count() != 1 {
 | 
			
		||||
        return Err(json!(ApiResponse {code: 500, message: "Change something is very wrong!".to_string()}).to_string());
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    println!("here!!!!");
 | 
			
		||||
    for data in version_iter {
 | 
			
		||||
        let data = data.unwrap();
 | 
			
		||||
        println!("here: {:?}", data);
 | 
			
		||||
        if data.configured == 1 {
 | 
			
		||||
            return Ok(true);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user