fix: configure
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Andre Henriques 2023-07-09 21:04:21 +01:00
parent 4ecc220a85
commit a2f407655e

View File

@ -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);
}